aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.c
diff options
context:
space:
mode:
authorJindřich Makovička <makovick@gmail.com>2012-09-29 11:16:45 +0200
committerReinhard Tartler <siretart@tauware.de>2012-10-19 19:23:14 +0200
commit9822e3aa52d1f074cbf0577e255fcb706b7e6fd4 (patch)
treed2c1a6894201653c8bd6bd14ee00920d61ebcf6b /libavutil/softfloat.c
parent0b923a2b72c103b29f4a0dc02676581a5eebcc43 (diff)
downloadffmpeg-9822e3aa52d1f074cbf0577e255fcb706b7e6fd4.tar.gz
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> (cherry picked from commit 1a8c6917f68f7378465e18f7615762bfd22704c2) Conflicts: libavcodec/h264.c
Diffstat (limited to 'libavutil/softfloat.c')
0 files changed, 0 insertions, 0 deletions