diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-07 20:17:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-07 20:17:44 +0000 |
commit | 3f6f76afef6d21363212445492f4d5036a9903d7 (patch) | |
tree | cc82f32ce5447c99049a952e7a92f32bdee7253b /libavcodec/h263.c | |
parent | 4b0e52f63505b21b8191ef8bc285108d74f31fe3 (diff) | |
download | ffmpeg-3f6f76afef6d21363212445492f4d5036a9903d7.tar.gz |
the reference sw doesnt like some legal headers ...
Originally committed as revision 2020 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 8ca67cce6d..ac21677a70 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -1628,9 +1628,9 @@ static void mpeg4_encode_visual_object_header(MpegEncContext * s){ put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, VOS_STARTCODE); - + put_bits(&s->pb, 8, profile_and_level_indication); - + put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, VISUAL_OBJ_STARTCODE); @@ -1747,8 +1747,10 @@ void mpeg4_encode_picture_header(MpegEncContext * s, int picture_number) if(s->pict_type==I_TYPE){ if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){ - mpeg4_encode_visual_object_header(s); - mpeg4_encode_vol_header(s, 0, 0); + if(s->strict_std_compliance < 2) //HACK, the reference sw is buggy + mpeg4_encode_visual_object_header(s); + if(s->strict_std_compliance < 2 || picture_number==0) //HACK, the reference sw is buggy + mpeg4_encode_vol_header(s, 0, 0); } mpeg4_encode_gop_header(s); } |