[FFmpeg-devel] [PATCH v5 4/7] libavcodec/webp: add support for animated WebP decoding
James Almer
jamrial at gmail.com
Tue Nov 21 03:14:13 EET 2023
On 11/20/2023 4:22 PM, Thilo Borgmann via ffmpeg-devel wrote:
> + if (*got_frame) {
> + if (!(s->vp8x_flags & VP8X_FLAG_ANIMATION)) {
> + // no animation, output the decoded frame
> + av_frame_move_ref(p, s->frame);
> + ret = ff_attach_decode_data(p);
> + if (ret < 0)
> + return ret;
If this frame's buffers were allocated with ff_get_buffer() (or its
threaded version), then a call to ff_attach_decode_data() is not necessary.
More information about the ffmpeg-devel
mailing list