OSDN Git Service

h264: Fix maximum reference count check for non-b frames
authorJeff Downs <heydowns@somuchpressure.net>
Thu, 28 Jun 2012 16:47:10 +0000 (12:47 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Jun 2012 20:25:38 +0000 (22:25 +0200)
commit8d9fd58113fa2953269252575bf5f1edce41e550
tree8caa4138b628c5df518a1edef6d23029db5ffa94
parent8069db86338de422485751e5970b512cd4705454
h264: Fix maximum reference count check for non-b frames

Below fixes the maximum reference count check for second reference list in
non-B frames.  There is nothing to prohibit full (field sized) reference
list in this case as far as I can tell, and this fixes several syntax-test
files here (this is a regression caused when this check was made more
stringent by
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=dc9ce40069bde3d28f8d0b3e5bd733ae255fecb5)

Probably a silly corner case seldom seen irl, but thought I'd pass along
in case there was interest in correcting the check.

---------------

h264: Fix maximum reference count check for non-b frames; full range is
technically ok

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c