Revision d9cf32d9

View differences:

libavcodec/vp3dsp.c
112 112
            Cd = A + C;
113 113
            Dd = B + D;
114 114

  
115
            E = M(xC4S4, (ip[0*8] + ip[4*8]));
116
            F = M(xC4S4, (ip[0*8] - ip[4*8]));
115
            E = M(xC4S4, (ip[0*8] + ip[4*8])) + 8;
116
            F = M(xC4S4, (ip[0*8] - ip[4*8])) + 8;
117

  
118
            if(type==1){  //HACK
119
                E += 16*128;
120
                F += 16*128;
121
            }
117 122

  
118 123
            G = M(xC2S6, ip[2*8]) + M(xC6S2, ip[6*8]);
119 124
            H = M(xC6S2, ip[2*8]) - M(xC2S6, ip[6*8]);
......
127 132
            Fd = F - Ad;
128 133
            Hd = Bd + H;
129 134

  
130
            if(type==1){  //HACK
131
                Gd += 16*128;
132
                Add+= 16*128;
133
                Ed += 16*128;
134
                Fd += 16*128;
135
            }
136
            Gd += IdctAdjustBeforeShift;
137
            Add += IdctAdjustBeforeShift;
138
            Ed += IdctAdjustBeforeShift;
139
            Fd += IdctAdjustBeforeShift;
140

  
141 135
            /* Final sequence of operations over-write original inputs. */
142 136
            if(type==0){
143 137
                ip[0*8] = (Gd + Cd )  >> 4;

Also available in: Unified diff