changeset 8010:4b19d9cbc75b libavcodec

fixing a bug that prevented proper unweighting table to be selected
author romansh
date Tue, 07 Oct 2008 15:51:29 +0000
parents f7c7ef5e448b
children 3ec8f8660152
files dv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Tue Oct 07 15:50:29 2008 +0000
+++ b/dv.c	Tue Oct 07 15:51:29 2008 +0000
@@ -410,7 +410,7 @@
             if (DV_PROFILE_IS_HD(s->sys)) {
                 mb->idct_put = s->idct_put[0];
                 mb->scan_table = s->dv_zigzag[0];
-                mb->factor_table = s->dv100_idct_factor[((s->sys->height == 720)<<1)&(j < 4)][class1][quant];
+                mb->factor_table = s->dv100_idct_factor[((s->sys->height == 720)<<1)|(j >= 4)][class1][quant];
                 is_field_mode[mb_index] |= !j && dct_mode;
             } else {
                 mb->idct_put = s->idct_put[dct_mode && log2_blocksize==3];