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;
> + }
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".