# HG changeset patch # User vitor # Date 1257881818 0 # Node ID 26fcf45bb486c13794bfdea1f6c4a58ee53bb24d # Parent cdf5b1ed3500ff38f91cfb280778bb1feb0845c2 Fix palette copying in av_picture_copy(). Previous code worked only if linesize[1] == 1, which does not make sense. diff -r cdf5b1ed3500 -r 26fcf45bb486 imgconvert.c --- a/imgconvert.c Tue Nov 10 18:52:39 2009 +0000 +++ b/imgconvert.c Tue Nov 10 19:36:58 2009 +0000 @@ -1184,9 +1184,7 @@ 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; } }