OSDN Git Service

h264: reset num_reorder_frames if it is invalid
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 18 Jan 2014 19:53:06 +0000 (20:53 +0100)
commit9ecabd7892ff073ae60ded3fc0a1290f5914ed5c
treebc58d8a1beb55b3f3d0a93ba46a9964195c6cc71
parent0652e024c680420d298cdf3719d0a0c030173fe3
h264: reset num_reorder_frames if it is invalid

An invalid VUI is not considered a fatal error, so the SPS containing it
may still be used. Leaving an invalid value of num_reorder_frames there
can result in writing over the bounds of H264Context.delayed_pic.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/h264_ps.c