Revision a75b43fd libavcodec/motion_est.c

View differences:

libavcodec/motion_est.c
846 846
            uint8_t *dest_y = s->me.scratchpad + offset;
847 847

  
848 848
            if(s->quarter_sample){
849
                uint8_t *ref= ref_data[0] + (mx4>>2) + (my4>>2)*stride + offset;
849
                uint8_t *ref= ref_data[0] + (mx4>>2) + (my4>>2)*stride;
850 850
                dxy = ((my4 & 3) << 2) | (mx4 & 3);
851 851

  
852 852
                if(s->no_rounding)
......
854 854
                else
855 855
                    s->dsp.put_qpel_pixels_tab       [1][dxy](dest_y   , ref    , stride);
856 856
            }else{
857
                uint8_t *ref= ref_data[0] + (mx4>>1) + (my4>>1)*stride + offset;
857
                uint8_t *ref= ref_data[0] + (mx4>>1) + (my4>>1)*stride;
858 858
                dxy = ((my4 & 1) << 1) | (mx4 & 1);
859 859

  
860 860
                if(s->no_rounding)

Also available in: Unified diff