You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/pixdesctest: use AVPALETTE_SIZE macro
This commit is contained in:
@@ -74,7 +74,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
|
|||||||
/* copy palette */
|
/* copy palette */
|
||||||
if (priv->pix_desc->flags & PIX_FMT_PAL ||
|
if (priv->pix_desc->flags & PIX_FMT_PAL ||
|
||||||
priv->pix_desc->flags & PIX_FMT_PSEUDOPAL)
|
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));
|
avfilter_start_frame(outlink, avfilter_ref_buffer(outpicref, ~0));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user