[SCM] libav/experimental: this prediction direction adjustment is wrong

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:02:52 UTC 2013


The following commit has been merged in the experimental branch:
commit 26bdc6bc6e420045889818e2e6afc60275c35abd
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Thu Jun 28 15:53:36 2007 +0000

    this prediction direction adjustment is wrong
    
    Originally committed as revision 9450 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 391d4e1..3fe0d27 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -2603,9 +2603,7 @@ static int vc1_decode_i_block_adv(VC1Context *v, DCTELEM block[64], int n, int c
     //AC Decoding
     i = 1;
 
-    /* check if AC is needed at all and adjust direction if needed */
-    if(!a_avail) dc_pred_dir = 1;
-    if(!c_avail) dc_pred_dir = 0;
+    /* check if AC is needed at all */
     if(!a_avail && !c_avail) use_pred = 0;
     ac_val = s->ac_val[0][0] + s->block_index[n] * 16;
     ac_val2 = ac_val;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list