Commit 8896060d authored by vitor's avatar vitor

Even better way to pass size to memcpy.

Commited in SoC by Bobby Bingham on 2007-07-02 14:33:18


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11971 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 008271a0
...@@ -55,8 +55,8 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms) ...@@ -55,8 +55,8 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms)
pic->free = avfilter_default_free_video_buffer; pic->free = avfilter_default_free_video_buffer;
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(uint8_t *) * 4); memcpy(ref->data, pic->data, sizeof(pic->data));
memcpy(ref->linesize, pic->linesize, sizeof(int) * 4); memcpy(ref->linesize, pic->linesize, sizeof(pic->linesize));
return ref; return ref;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment