Commit 9c1afbd4 authored by michael's avatar michael

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

More precissely fix has_b_frames.
Fixes issue757


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16256 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 38b589dd
...@@ -6137,6 +6137,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb) ...@@ -6137,6 +6137,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
end: end:
if(s->flags& CODEC_FLAG_LOW_DELAY) if(s->flags& CODEC_FLAG_LOW_DELAY)
s->low_delay=1; s->low_delay=1;
s->avctx->has_b_frames= !s->low_delay;
return decode_vop_header(s, gb); 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