summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-21 21:47:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-21 21:47:29 +0000
commited4c638a07005007561590e2373b49917e8e4e6d (patch)
tree2c6b01f62e841b20ac5ece7e137855674fae17d0 /libavcodec/h263.c
parentc62da7972bd159ace1294b6e829d4cfbe2fa9ce7 (diff)
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
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index bbb40a4941..781c0079ef 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -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);
}