aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-05-25 11:16:40 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-05-25 11:16:40 +0200
commit171db366fdad0dfa3c7d9ac23895e84bcccefda9 (patch)
treec691655d20b8086f243e4093f4cde71fd96c8c44
parente37bfc49251f94ecfb4630861e45805eef9b8089 (diff)
downloadffmpeg-171db366fdad0dfa3c7d9ac23895e84bcccefda9.tar.gz
lavfi/pixdesctest: use AVPALETTE_SIZE macro
-rw-r--r--libavfilter/vf_pixdesctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index 4b11b8c2b4..9aee482874 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));
}