1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-10 01:30:21 +02:00

the reference sw doesnt like some legal headers ...

Originally committed as revision 2020 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2003-07-07 20:17:44 +00:00
parent 4b0e52f635
commit 3f6f76afef

View File

@ -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);
}