h264: stricter reference limit enforcement.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 13 Mar 2012 23:26:44 +0000 (16:26 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 14 Mar 2012 20:24:49 +0000 (13:24 -0700)
commite0febda22d0e0fab094a9c886b0e0f0f662df1ef
treec77d610b4fc5bd6923a0ccc32f8c31562f140ef9
parent48cbe4b092113eae0b3e5d6a08b59027f913a884
h264: stricter reference limit enforcement.

Progressive images can have only 16 references, error out if there are
more, since the data is almost certainly corrupt, and the invalid value
will lead to random crashes or invalid writes later on.

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