[FFmpeg-cvslog] r20503 - trunk/libavcodec/imgconvert.c

vitor subversion
Tue Nov 10 20:36:58 CET 2009


Author: vitor
Date: Tue Nov 10 20:36:58 2009
New Revision: 20503

Log:
Fix palette copying in av_picture_copy(). Previous code worked only if
linesize[1] == 1, which does not make sense.

Modified:
   trunk/libavcodec/imgconvert.c

Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c	Tue Nov 10 19:52:39 2009	(r20502)
+++ trunk/libavcodec/imgconvert.c	Tue Nov 10 20:36:58 2009	(r20503)
@@ -1184,9 +1184,7 @@ void av_picture_copy(AVPicture *dst, con
                        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;
     }
 }



More information about the ffmpeg-cvslog mailing list