Mercurial > libavcodec.hg
diff h263.c @ 923:3b5d9ecedc73 libavcodec
correct mpeg4 vo type
author | michaelni |
---|---|
date | Mon, 09 Dec 2002 00:06:15 +0000 |
parents | f633377858b6 |
children | 6bcb214d6a17 |
line wrap: on
line diff
--- a/h263.c Sun Dec 08 21:29:37 2002 +0000 +++ b/h263.c Mon Dec 09 00:06:15 2002 +0000 @@ -1522,7 +1522,11 @@ 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 */