[FFmpeg-devel] [PATCH] lavfi/hflip: copy palette data in start_frame()

Nicolas George nicolas.george at normalesup.org
Sat Apr 7 10:22:37 CEST 2012


Le nonidi 19 germinal, an CCXX, Stefano Sabatini a écrit :
> +static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
> +{
> +    avfilter_default_start_frame(inlink, picref);
> +
> +    /* copy palette if required */
> +    if (inlink->format == PIX_FMT_PAL8)
> +        memcpy(inlink->dst->outputs[0]->out_buf->data[1], picref->data[1], 256*4);

How does it relate to the patch you just sent to do it in
avfilter_start_frame?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120407/8e53f2ad/attachment.asc>


More information about the ffmpeg-devel mailing list