Revision 2843502e

View differences:

libavcodec/interplayvideo.c
99 99
            motion_offset, s->upper_motion_limit_offset);
100 100
        return -1;
101 101
    }
102
    if (src->data[0] == NULL) {
103
        av_log(s->avctx, AV_LOG_ERROR, "Invalid decode type, corrupted header?\n");
104
        return AVERROR(EINVAL);
105
    }
102 106
    s->dsp.put_pixels_tab[!s->is_16bpp][0](s->pixel_ptr, src->data[0] + motion_offset,
103 107
                                           s->current_frame.linesize[0], 8);
104 108
    return 0;

Also available in: Unified diff