changeset 3142:5d305fcbf54e libavcodec

dont lowwer qnos of more blocks then needed
author michael
date Thu, 23 Feb 2006 13:05:37 +0000
parents 25493c849d70
children ef36cc95e4ab
files dv.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Thu Feb 23 10:07:41 2006 +0000
+++ b/dv.c	Thu Feb 23 13:05:37 2006 +0000
@@ -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]);