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
This commit is contained in:
Vitor Sessak 2008-02-15 21:35:25 +00:00
parent 58a9b20fb6
commit c74032b7a8

View File

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