diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-12-09 00:06:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-12-09 00:06:15 +0000 |
commit | f8af5cb5a40c7fb76760ecfe03556845a83fbfe6 (patch) | |
tree | 8271cb8e32c3ede6b4fa9a528eeb84cbaad543c6 /libavcodec/h263.c | |
parent | 86689eeb7a72c50cf23b9ed414a3d2b51ebd5eab (diff) | |
download | ffmpeg-f8af5cb5a40c7fb76760ecfe03556845a83fbfe6.tar.gz |
correct mpeg4 vo type
Originally committed as revision 1324 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 80c9a3adc8..80fcd13e19 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -1522,7 +1522,11 @@ static void mpeg4_encode_vol_header(MpegEncContext * s) int vo_ver_id=1; //must be 2 if we want GMC or q-pel char buf[255]; - s->vo_type= s->has_b_frames ? CORE_VO_TYPE : SIMPLE_VO_TYPE; + if(s->max_b_frames){ + s->vo_type= ADV_SIMPLE_VO_TYPE; + }else{ + s->vo_type= SIMPLE_VO_TYPE; + } put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, 0x100); /* video obj */ |