mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-05 21:55:37 +01:00
libwebp: simplify AVCodec.close functions
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -80,7 +80,10 @@ end:
|
||||
|
||||
static int libwebp_encode_close(AVCodecContext *avctx)
|
||||
{
|
||||
return ff_libwebp_encode_close_common(avctx);
|
||||
LibWebPContextCommon *s = avctx->priv_data;
|
||||
av_frame_free(&s->ref);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const AVClass class = {
|
||||
|
||||
Reference in New Issue
Block a user