Revision bc0219fd libavcodec/msrle.c

View differences:

libavcodec/msrle.c
177 177
    }
178 178

  
179 179
    /* grossly inefficient, but...oh well */
180
    memcpy(s->frame.data[0], s->prev_frame.data[0], 
180
    if (s->prev_frame.data[0] != NULL)
181
	memcpy(s->frame.data[0], s->prev_frame.data[0], 
181 182
        s->frame.linesize[0] * s->avctx->height);
182 183

  
183 184
    msrle_decode_pal8(s);

Also available in: Unified diff