Revision ac74dfa4 libavfilter/vf_crop.c

View differences:

libavfilter/vf_crop.c
180 180
        for (i = 1; i < 3; i ++) {
181 181
            if (ref2->data[i]) {
182 182
                ref2->data[i] += (crop->y >> crop->vsub) * ref2->linesize[i];
183
                ref2->data[i] +=  crop->x >> crop->hsub;
183
                ref2->data[i] += ((crop->x * crop->bpp) >> 3) >> crop->hsub;
184 184
            }
185 185
        }
186 186
    }

Also available in: Unified diff