mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/pixdesctest: use AVPALETTE_SIZE macro
This commit is contained in:
parent
e37bfc4925
commit
171db366fd
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user