changeset 2204:4f8da6a9e6eb libavcodec

Always write VOL control parameters, needed by old xvid patch by (Loren Merritt <lorenm at u dot washington dot edu>)
author michael
date Fri, 03 Sep 2004 02:32:39 +0000
parents edf4787f3baf
children b90828c162f5
files h263.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Thu Sep 02 18:46:41 2004 +0000
+++ b/h263.c	Fri Sep 03 02:32:39 2004 +0000
@@ -2226,14 +2226,10 @@
         put_bits(&s->pb, 8, s->avctx->sample_aspect_ratio.den);
     }
 
-    if(s->low_delay){
-        put_bits(&s->pb, 1, 1);		/* vol control parameters= yes */
-        put_bits(&s->pb, 2, 1);		/* chroma format YUV 420/YV12 */
-        put_bits(&s->pb, 1, s->low_delay);
-        put_bits(&s->pb, 1, 0);		/* vbv parameters= no */
-    }else{
-        put_bits(&s->pb, 1, 0);		/* vol control parameters= no */
-    }
+    put_bits(&s->pb, 1, 1);		/* vol control parameters= yes */
+    put_bits(&s->pb, 2, 1);		/* chroma format YUV 420/YV12 */
+    put_bits(&s->pb, 1, s->low_delay);
+    put_bits(&s->pb, 1, 0);		/* vbv parameters= no */
 
     put_bits(&s->pb, 2, RECT_SHAPE);	/* vol shape= rectangle */
     put_bits(&s->pb, 1, 1);		/* marker bit */