Commit 6ed4a23b authored by vitor's avatar vitor

Fix palette copying in av_picture_copy(). Previous code worked only if

linesize[1] == 1, which does not make sense.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20503 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bd761688
...@@ -1184,9 +1184,7 @@ void av_picture_copy(AVPicture *dst, const AVPicture *src, ...@@ -1184,9 +1184,7 @@ void av_picture_copy(AVPicture *dst, const AVPicture *src,
src->data[0], src->linesize[0], src->data[0], src->linesize[0],
width, height); width, height);
/* copy the palette */ /* copy the palette */
ff_img_copy_plane(dst->data[1], dst->linesize[1], memcpy(dst->data[1], src->data[1], 4*256);
src->data[1], src->linesize[1],
4, 256);
break; break;
} }
} }
......
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