[FFmpeg-cvslog] lavfi/pixdesctest: use AVPALETTE_SIZE macro
Stefano Sabatini
git at videolan.org
Fri May 25 11:17:56 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri May 25 11:16:40 2012 +0200| [171db366fdad0dfa3c7d9ac23895e84bcccefda9] | committer: Stefano Sabatini
lavfi/pixdesctest: use AVPALETTE_SIZE macro
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=171db366fdad0dfa3c7d9ac23895e84bcccefda9
---
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 4b11b8c..9aee482 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));
}
More information about the ffmpeg-cvslog
mailing list