Mercurial > libavcodec.hg
comparison h263.c @ 1350:e7c8051e1849 libavcodec
the reference sw doesnt like some legal headers ...
author | michaelni |
---|---|
date | Mon, 07 Jul 2003 20:17:44 +0000 |
parents | 44c94325810c |
children | cfc80b3a4ada |
comparison
equal
deleted
inserted
replaced
1349:89e6c3ce263a | 1350:e7c8051e1849 |
---|---|
1626 } | 1626 } |
1627 //FIXME levels | 1627 //FIXME levels |
1628 | 1628 |
1629 put_bits(&s->pb, 16, 0); | 1629 put_bits(&s->pb, 16, 0); |
1630 put_bits(&s->pb, 16, VOS_STARTCODE); | 1630 put_bits(&s->pb, 16, VOS_STARTCODE); |
1631 | 1631 |
1632 put_bits(&s->pb, 8, profile_and_level_indication); | 1632 put_bits(&s->pb, 8, profile_and_level_indication); |
1633 | 1633 |
1634 put_bits(&s->pb, 16, 0); | 1634 put_bits(&s->pb, 16, 0); |
1635 put_bits(&s->pb, 16, VISUAL_OBJ_STARTCODE); | 1635 put_bits(&s->pb, 16, VISUAL_OBJ_STARTCODE); |
1636 | 1636 |
1637 put_bits(&s->pb, 1, 1); | 1637 put_bits(&s->pb, 1, 1); |
1638 put_bits(&s->pb, 4, vo_ver_id); | 1638 put_bits(&s->pb, 4, vo_ver_id); |
1745 int time_incr; | 1745 int time_incr; |
1746 int time_div, time_mod; | 1746 int time_div, time_mod; |
1747 | 1747 |
1748 if(s->pict_type==I_TYPE){ | 1748 if(s->pict_type==I_TYPE){ |
1749 if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){ | 1749 if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){ |
1750 mpeg4_encode_visual_object_header(s); | 1750 if(s->strict_std_compliance < 2) //HACK, the reference sw is buggy |
1751 mpeg4_encode_vol_header(s, 0, 0); | 1751 mpeg4_encode_visual_object_header(s); |
1752 if(s->strict_std_compliance < 2 || picture_number==0) //HACK, the reference sw is buggy | |
1753 mpeg4_encode_vol_header(s, 0, 0); | |
1752 } | 1754 } |
1753 mpeg4_encode_gop_header(s); | 1755 mpeg4_encode_gop_header(s); |
1754 } | 1756 } |
1755 | 1757 |
1756 s->partitioned_frame= s->data_partitioning && s->pict_type!=B_TYPE; | 1758 s->partitioned_frame= s->data_partitioning && s->pict_type!=B_TYPE; |