Commit 47a96e9e authored by michael's avatar michael

Make the automatic has_b_frames increasing code increase it up to the

same maximum that can be achived by specifying the value in the bitstream.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14302 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7162626c
......@@ -7862,7 +7862,7 @@ static int decode_frame(AVCodecContext *avctx,
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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment