Mercurial > libavcodec.hg
changeset 10510:26fcf45bb486 libavcodec
Fix palette copying in av_picture_copy(). Previous code worked only if
linesize[1] == 1, which does not make sense.
author | vitor |
---|---|
date | Tue, 10 Nov 2009 19:36:58 +0000 |
parents | cdf5b1ed3500 |
children | bfea93e47391 |
files | imgconvert.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }