Commit 42d6b5bd authored by michael's avatar michael

Try to set has_b_frames in codec init if we know everything alraedy.

This fixes some issues with the first few timestamps.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21976 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 830284be
......@@ -917,6 +917,10 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){
if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0)
return -1;
}
if(h->sps.bitstream_restriction_flag && s->avctx->has_b_frames < h->sps.num_reorder_frames){
s->avctx->has_b_frames = h->sps.num_reorder_frames;
s->low_delay = 0;
}
return 0;
}
......
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