diff options
Diffstat (limited to 'libavformat/rtpdec_amr.c')
-rw-r--r-- | libavformat/rtpdec_amr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtpdec_amr.c b/libavformat/rtpdec_amr.c index 9f5ab26aa9..b2e3d6042e 100644 --- a/libavformat/rtpdec_amr.c +++ b/libavformat/rtpdec_amr.c @@ -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 |