Make linesize a per-reference property

Commited in SoC by Bobby Bingham on 2007-06-30 16:15:14

Originally committed as revision 11968 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Vitor Sessak 17 years ago
parent 58a9b20fb6
commit c74032b7a8
  1. 1
      libavfilter/avfilter.c

@ -56,6 +56,7 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms)
avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h); avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h);
memcpy(ref->data, pic->data, sizeof(int *) * 4); memcpy(ref->data, pic->data, sizeof(int *) * 4);
memcpy(ref->linesize, pic->linesize, sizeof(int *) * 4);
return ref; return ref;
} }

Loading…
Cancel
Save