diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-08 20:55:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-08 20:55:11 +0200 |
commit | 5d6a40bc747da93bd4ee41a446c35fc60a399671 (patch) | |
tree | 613c91012a37b3646f1575955d6124ffc4fdefe7 /libavformat/rtpdec_amr.c | |
parent | 4f043c8a119101ffe8f6a57b18a47f602a350c30 (diff) | |
parent | 9294f538e924dcb8f3938e4e3476340f1e5b552f (diff) |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
rtsp: Don't use av_malloc(0) if there are no streams
rtsp: Don't use uninitialized data if there are no streams
vaapi: mpeg2: fix slice_vertical_position calculation.
hwaccel: mpeg2: decode first field, if requested.
cosmetics: Fix indentation
rtsp: Don't expose the MS-RTSP RTX data stream to the caller
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 de824904aa..86033cf8d2 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 |