Commit ed4c638a authored by Michael Niedermayer's avatar Michael Niedermayer

Fix PTS returned by the demuxers for mpeg4 without a decoder.

More precissely fix has_b_frames.
Fixes issue757

Originally committed as revision 16256 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c62da797
......@@ -6137,6 +6137,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
end:
if(s->flags& CODEC_FLAG_LOW_DELAY)
s->low_delay=1;
s->avctx->has_b_frames= !s->low_delay;
return decode_vop_header(s, gb);
}
......
This diff is collapsed.
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