From 171db366fdad0dfa3c7d9ac23895e84bcccefda9 Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <stefasab@gmail.com>
Date: Fri, 25 May 2012 11:16:40 +0200
Subject: [PATCH] lavfi/pixdesctest: use AVPALETTE_SIZE macro

---
 libavfilter/vf_pixdesctest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index 4b11b8c2b4e..9aee4828747 100644
--- a/libavfilter/vf_pixdesctest.c
+++ b/libavfilter/vf_pixdesctest.c
@@ -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], picref->data[1], 256*4);
+        memcpy(outpicref->data[1], picref->data[1], AVPALETTE_SIZE);
 
     avfilter_start_frame(outlink, avfilter_ref_buffer(outpicref, ~0));
 }
-- 
GitLab