]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_amr.c
network: Include unistd.h from network.h
[ffmpeg] / libavformat / rtpdec_amr.c
index 9f5ab26aa9f69e21bb25606c816e8208249ebfa5..b2e3d6042ec9afd2a0a85ba920076c67c1d5ff63 100644 (file)
@@ -169,6 +169,9 @@ static int amr_parse_sdp_line(AVFormatContext *s, int st_index,
     const char *p;
     int ret;
 
+    if (st_index < 0)
+        return 0;
+
     /* Parse an fmtp line this one:
      * a=fmtp:97 octet-align=1; interleaving=0
      * That is, a normal fmtp: line followed by semicolon & space