comparison h263.c @ 923:3b5d9ecedc73 libavcodec

correct mpeg4 vo type
author michaelni
date Mon, 09 Dec 2002 00:06:15 +0000
parents f633377858b6
children 6bcb214d6a17
comparison
equal deleted inserted replaced
922:5fa4d5007dfd 923:3b5d9ecedc73
1520 static void mpeg4_encode_vol_header(MpegEncContext * s) 1520 static void mpeg4_encode_vol_header(MpegEncContext * s)
1521 { 1521 {
1522 int vo_ver_id=1; //must be 2 if we want GMC or q-pel 1522 int vo_ver_id=1; //must be 2 if we want GMC or q-pel
1523 char buf[255]; 1523 char buf[255];
1524 1524
1525 s->vo_type= s->has_b_frames ? CORE_VO_TYPE : SIMPLE_VO_TYPE; 1525 if(s->max_b_frames){
1526 s->vo_type= ADV_SIMPLE_VO_TYPE;
1527 }else{
1528 s->vo_type= SIMPLE_VO_TYPE;
1529 }
1526 1530
1527 put_bits(&s->pb, 16, 0); 1531 put_bits(&s->pb, 16, 0);
1528 put_bits(&s->pb, 16, 0x100); /* video obj */ 1532 put_bits(&s->pb, 16, 0x100); /* video obj */
1529 put_bits(&s->pb, 16, 0); 1533 put_bits(&s->pb, 16, 0);
1530 put_bits(&s->pb, 16, 0x120); /* video obj layer */ 1534 put_bits(&s->pb, 16, 0x120); /* video obj layer */