Revision 59b9c75d

View differences:

libavcodec/mpegvideo.c
2215 2215
                    }else{
2216 2216

  
2217 2217
                        dct_linesize = uvlinesize << s->interlaced_dct;
2218
                        dct_offset =(s->interlaced_dct)? uvlinesize : uvlinesize*8;
2218
                        dct_offset =(s->interlaced_dct)? uvlinesize : uvlinesize*block_size;
2219 2219

  
2220 2220
                        s->dsp.idct_put(dest_cb,              dct_linesize, block[4]);
2221 2221
                        s->dsp.idct_put(dest_cr,              dct_linesize, block[5]);
2222 2222
                        s->dsp.idct_put(dest_cb + dct_offset, dct_linesize, block[6]);
2223 2223
                        s->dsp.idct_put(dest_cr + dct_offset, dct_linesize, block[7]);
2224 2224
                        if(!s->chroma_x_shift){//Chroma444
2225
                            s->dsp.idct_put(dest_cb + 8,              dct_linesize, block[8]);
2226
                            s->dsp.idct_put(dest_cr + 8,              dct_linesize, block[9]);
2227
                            s->dsp.idct_put(dest_cb + 8 + dct_offset, dct_linesize, block[10]);
2228
                            s->dsp.idct_put(dest_cr + 8 + dct_offset, dct_linesize, block[11]);
2225
                            s->dsp.idct_put(dest_cb + block_size,              dct_linesize, block[8]);
2226
                            s->dsp.idct_put(dest_cr + block_size,              dct_linesize, block[9]);
2227
                            s->dsp.idct_put(dest_cb + block_size + dct_offset, dct_linesize, block[10]);
2228
                            s->dsp.idct_put(dest_cr + block_size + dct_offset, dct_linesize, block[11]);
2229 2229
                        }
2230 2230
                    }
2231 2231
                }//gray

Also available in: Unified diff