1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-07-13 08:00:49 +02:00

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

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

Originally committed as revision 20503 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2009-11-10 19:36:58 +00:00
parent 8cbcb1c732
commit 51ae2142d5

View File

@ -1184,9 +1184,7 @@ void av_picture_copy(AVPicture *dst, const AVPicture *src,
src->data[0], src->linesize[0],
width, height);
/* copy the palette */
ff_img_copy_plane(dst->data[1], dst->linesize[1],
src->data[1], src->linesize[1],
4, 256);
memcpy(dst->data[1], src->data[1], 4*256);
break;
}
}