h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 1 Dec 2011 20:45:10 +0000 (12:45 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 1 Dec 2011 20:46:28 +0000 (12:46 -0800)
commit2574f08d4c30b37e39650a3b3d1970f75f3170cd
treee52efed4ffc267b4fdcdb4fce197bd0ce7555519
parent3adba2de3d0c4903cf310fcce80ebac4dd972fd3
h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.

This prevents frame allocation overflows, and fixed
fate-h264-conformance-mr3_tandberg_b with 2 threads.
libavcodec/h264.c