Revision a4ca7389

View differences:

libavfilter/avfilter.c
55 55
    pic->free = avfilter_default_free_video_buffer;
56 56
    avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h);
57 57

  
58
    memcpy(ref->data, pic->data, sizeof(uint8_t *) * 4);
59
    memcpy(ref->linesize, pic->linesize, sizeof(int) * 4);
58
    memcpy(ref->data, pic->data, sizeof(pic->data));
59
    memcpy(ref->linesize, pic->linesize, sizeof(pic->linesize));
60 60

  
61 61
    return ref;
62 62
}

Also available in: Unified diff