# HG changeset patch # User michaelni # Date 1029615027 0 # Node ID 4344cc8033bdb74b2746d2d0a53b16d1189d0813 # Parent 442dede8795b2a66cc75d4bb6b0d736cfc9e77e3 skip blocks with small chroma dc too (if the user wants it) needed to avoid IDCT(input coeffs !=0) == 0 problems which cause catastrophic error accumulation at qp=1 diff -r 442dede8795b -r 4344cc8033bd mpegvideo.c --- a/mpegvideo.c Tue Aug 13 18:51:11 2002 +0000 +++ b/mpegvideo.c Sat Aug 17 20:10:27 2002 +0000 @@ -1589,7 +1589,11 @@ const int last_index= s->block_last_index[n]; if(skip_dc) skip_dc=1; - + if(threshold<0){ + skip_dc=0; + threshold= -threshold; + } + /* are all which we could set to zero are allready zero? */ if(last_index<=skip_dc - 1) return;