[FFmpeg-devel] [PATCH] avcodec: add RPZA encoder

James Almer jamrial at gmail.com
Sun Jul 19 19:51:47 EEST 2020


On 7/16/2020 11:54 AM, Paul B Mahol wrote:
> +    if (!s->prev_frame->data[0]) {
> +        s->first_frame = 1;
> +        ret = ff_get_buffer(avctx, s->prev_frame, 0);

This is for decoders only. Fill format, width and height on
s->prev_frame then call av_frame_get_buffer() instead.

> +        if (ret < 0)
> +            return ret;
> +    } else {
> +        s->first_frame = 0;
> +    }



More information about the ffmpeg-devel mailing list