diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-11-13 04:27:35 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-11-13 04:27:35 +0300 |
commit | 3129cd0140b15b80f3e7106f308ce19226ef0b1d (patch) | |
tree | ad5a8bd791f5ae7e0cefd246a564b2cd35a22b84 /libavformat/rtsp.c | |
parent | 4940ed6ae12e47a6cab496c3f32326fc39ab4b7b (diff) |
allocate a few bytes more for extradata so the bitstream reader if its used by the codec for parsing extardata, doesnt read over the end
Originally committed as revision 3679 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index af898ba217..2b6fa8844a 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -211,7 +211,7 @@ static void sdp_parse_fmtp(AVCodecContext *codec, const char *p) if (!strcmp(attr, "config")) { /* decode the hexa encoded parameter */ len = hex_to_data(NULL, value); - codec->extradata = av_mallocz(len); + codec->extradata = av_mallocz(len + FF_INPUT_BUFFER_PADDING_SIZE); if (!codec->extradata) goto fail; codec->extradata_size = len; |