diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-12-14 12:04:45 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-12-14 12:04:45 +0000 |
commit | 7984bbe2ce445b7b550205361e781adfea2db473 (patch) | |
tree | cc0c447ccaa17c8d39b758c01f0ebb5e9e4ddb8b /libavcodec | |
parent | e42a152bbc0cc5e3486ab94f03e40d04eae13a67 (diff) | |
download | ffmpeg-7984bbe2ce445b7b550205361e781adfea2db473.tar.gz |
fix timestamp prediction for low_delay mpeg streams
Originally committed as revision 3751 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 70552d4c57..60f55758ff 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -325,6 +325,7 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, frame_rate_ext_n = (buf[5] >> 5) & 3; frame_rate_ext_d = (buf[5] & 0x1f); pc->progressive_sequence = buf[1] & (1 << 3); + avctx->has_b_frames= buf[5] >> 7; pc->width |=(horiz_size_ext << 12); pc->height |=( vert_size_ext << 12); |