diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-10 18:35:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-10 18:35:07 +0200 |
commit | bc48c88918f767e0dffcd138ae8e5c3052e8a92f (patch) | |
tree | c2245483d88419bfb0c36cdd729dd5e5ab1266a2 /libavcodec/h264_parser.c | |
parent | 4d0f6d3fb421b3ab774ccd3c299f0a242f359a75 (diff) | |
download | ffmpeg-streaming-bc48c88918f767e0dffcd138ae8e5c3052e8a92f.zip ffmpeg-streaming-bc48c88918f767e0dffcd138ae8e5c3052e8a92f.tar.gz |
avcodec/h264: Do not fail with randomly truncated VUIs
Fixes Ticket4445
Tested-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r-- | libavcodec/h264_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 516c68f..19d1aa3 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -282,7 +282,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, init_get_bits(&h->gb, ptr, 8 * dst_length); switch (h->nal_unit_type) { case NAL_SPS: - ff_h264_decode_seq_parameter_set(h); + ff_h264_decode_seq_parameter_set(h, 0); break; case NAL_PPS: ff_h264_decode_picture_parameter_set(h, h->gb.size_in_bits); |