[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec dv.c,1.73,1.74

Michael Niedermayer CVS michael
Thu Feb 23 14:05:39 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv1506/libavcodec

Modified Files:
	dv.c 
Log Message:
dont lowwer qnos of more blocks then needed


Index: dv.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/dv.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- dv.c	23 Feb 2006 08:56:53 -0000	1.73
+++ dv.c	23 Feb 2006 13:05:37 -0000	1.74
@@ -731,6 +731,7 @@
     int i, j, k, a, prev, a2;
     EncBlockInfo* b;
 
+    size[4]= 1<<24;
     do {
        b = blks;
        for (i=0; i<5; i++) {
@@ -766,9 +767,9 @@
                 size[i] += b->bit_size[a];
              }
           }
+          if(vs_total_ac_bits >= size[0] + size[1] + size[2] + size[3] + size[4])
+                return;
        }
-       if(vs_total_ac_bits >= size[0] + size[1] + size[2] + size[3] + size[4])
-            return;
     } while (qnos[0]|qnos[1]|qnos[2]|qnos[3]|qnos[4]);
 
 





More information about the ffmpeg-cvslog mailing list