diff options
Diffstat (limited to 'libavformat/rtpdec_latm.c')
-rw-r--r-- | libavformat/rtpdec_latm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c index ed0a435514..5b0ece2bfe 100644 --- a/libavformat/rtpdec_latm.c +++ b/libavformat/rtpdec_latm.c @@ -168,6 +168,9 @@ static int latm_parse_sdp_line(AVFormatContext *s, int st_index, { const char *p; + if (st_index < 0) + return 0; + if (av_strstart(line, "fmtp:", &p)) return ff_parse_fmtp(s->streams[st_index], data, p, parse_fmtp); |