Revision 80fec3ff libavcodec/interplayvideo.c

View differences:

libavcodec/interplayvideo.c
87 87
static int copy_from(IpvideoContext *s, AVFrame *src, int delta_x, int delta_y)
88 88
{
89 89
    int current_offset = s->pixel_ptr - s->current_frame.data[0];
90
    int motion_offset = current_offset + delta_y * s->stride + delta_x;
90
    int motion_offset = current_offset + delta_y * s->current_frame.linesize[0] + delta_x;
91 91
    if (motion_offset < 0) {
92 92
        av_log(s->avctx, AV_LOG_ERROR, " Interplay video: motion offset < 0 (%d)\n", motion_offset);
93 93
        return -1;
......
96 96
            motion_offset, s->upper_motion_limit_offset);
97 97
        return -1;
98 98
    }
99
    s->dsp.put_pixels_tab[1][0](s->pixel_ptr, src->data[0] + motion_offset, s->stride, 8);
99
    s->dsp.put_pixels_tab[1][0](s->pixel_ptr, src->data[0] + motion_offset, s->current_frame.linesize[0], 8);
100 100
    return 0;
101 101
}
102 102

  

Also available in: Unified diff