projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbcb1c
)
Fix palette copying in av_picture_copy(). Previous code worked only if
author
Vitor Sessak
<vitor1001@gmail.com>
Tue, 10 Nov 2009 19:36:58 +0000
(19:36 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Tue, 10 Nov 2009 19:36:58 +0000
(19:36 +0000)
linesize[1] == 1, which does not make sense.
Originally committed as revision 20503 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgconvert.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgconvert.c
b/libavcodec/imgconvert.c
index
a5fcb53
..
068e933
100644
(file)
--- a/
libavcodec/imgconvert.c
+++ b/
libavcodec/imgconvert.c
@@
-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;
}
}