lavfi/pixdesctest: fix SAME -> SAME memcpy
authorStefano Sabatini <stefasab@gmail.com>
Fri, 25 May 2012 01:03:38 +0000 (03:03 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 25 May 2012 09:04:34 +0000 (11:04 +0200)
Fix pixdesctest output with pal8 input.

X-Cola-Count: +(10+i*PI)l

libavfilter/vf_pixdesctest.c

index 97e0f2f..4b11b8c 100644 (file)
@@ -74,7 +74,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
     /* copy palette */
     if (priv->pix_desc->flags & PIX_FMT_PAL ||
         priv->pix_desc->flags & PIX_FMT_PSEUDOPAL)
-        memcpy(outpicref->data[1], outpicref->data[1], 256*4);
+        memcpy(outpicref->data[1], picref->data[1], 256*4);
 
     avfilter_start_frame(outlink, avfilter_ref_buffer(outpicref, ~0));
 }