changeset 7320:927ac918cddb libavcodec

Make the automatic has_b_frames increasing code increase it up to the same maximum that can be achieved by specifying the value in the bitstream.
author michael
date Sat, 19 Jul 2008 15:37:52 +0000
parents d0937cc65db3
children 2db97a3e51ed
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sat Jul 19 15:32:29 2008 +0000
+++ b/h264.c	Sat Jul 19 15:37:52 2008 +0000
@@ -7862,7 +7862,7 @@
 
             if(h->sps.bitstream_restriction_flag && s->avctx->has_b_frames >= h->sps.num_reorder_frames)
                 { }
-            else if((out_of_order && pics-1 == s->avctx->has_b_frames && pics < 15)
+            else if((out_of_order && pics-1 == s->avctx->has_b_frames && s->avctx->has_b_frames < MAX_DELAYED_PIC_COUNT)
                || (s->low_delay &&
                 ((!cross_idr && out->poc > h->outputed_poc + 2)
                  || cur->pict_type == FF_B_TYPE)))