FFmpeg git repo
Go to file
Jindřich Makovička 1a8c6917f6 h264: avoid stuck buffer pointer in decode_nal_units
When decode_nal_units() previously encountered a NAL_END_SEQUENCE,
and there are some junk bytes left in the input buffer, but no start codes,
buf_index gets stuck 3 bytes before the end of the buffer.

This can trigger an infinite loop in the caller code, eg. in
try_decode_trame(), as avcodec_decode_video() then keeps returning zeroes,
with 3 bytes of the input packet still available.

With this change, the remaining bytes are skipped so the whole packet gets
consumed.

CC:libav-stable@libav.org

Signed-off-by: Jindřich Makovička <makovick@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2012-09-29 19:31:17 +02:00
compat compat/vsnprintf: return number of bytes required on truncation. 2012-09-15 14:33:11 -04:00
doc doc/platform: Rework the Visual Studio linking section 2012-09-28 15:52:21 -04:00
libavcodec h264: avoid stuck buffer pointer in decode_nal_units 2012-09-29 19:31:17 +02:00
libavdevice
libavfilter Use avcodec_free_frame() to free AVFrames. 2012-09-24 12:31:25 +02:00
libavformat avidec: use actually read size instead of requested size 2012-09-29 09:27:59 +02:00
libavresample
libavutil ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code 2012-09-21 07:07:58 +01:00
libswscale
presets
tests
tools
.gitignore
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog Opus decoder using libopus 2012-09-28 11:03:20 +02:00
Doxyfile
INSTALL
LICENSE
Makefile
README
RELEASE
arch.mak
avconv.c Use avcodec_free_frame() to free AVFrames. 2012-09-24 12:31:25 +02:00
avconv.h
avconv_filter.c avconv: don't pass a bogus parameter to avfilter_graph_create_filter(). 2012-09-17 15:48:20 +02:00
avconv_opt.c
avplay.c Use avcodec_free_frame() to free AVFrames. 2012-09-24 12:31:25 +02:00
avprobe.c
avserver.c
cmdutils.c
cmdutils.h
cmdutils_common_opts.h
common.mak build: Properly remove object files while cleaning 2012-09-15 19:44:05 -04:00
configure Opus decoder using libopus 2012-09-28 11:03:20 +02:00
library.mak build: support some non-standard ar variants 2012-09-19 14:09:50 +01:00
version.sh

README

Libav README
------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* See the LICENSE file.