diff 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
line wrap: on
line diff
--- a/h263.c	Mon Jul 07 16:06:00 2003 +0000
+++ b/h263.c	Mon Jul 07 20:17:44 2003 +0000
@@ -1628,9 +1628,9 @@
 
     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 @@
     
     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);
     }