diff options
author | James Almer <jamrial@gmail.com> | 2015-05-23 14:24:34 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-05-23 14:46:46 -0300 |
commit | 8952254ffe7f43a967a3be5fdd40e48d899c2e01 (patch) | |
tree | da4b6e4824f3a88ee2a20299b2a4cceb4c961110 /libavcodec/libwebpenc.c | |
parent | 57d9788d1b06eb4a410ce27f3b589fdc847a21d5 (diff) | |
download | ffmpeg-8952254ffe7f43a967a3be5fdd40e48d899c2e01.tar.gz |
libwebp: simplify AVCodec.close functions
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libwebpenc.c')
-rw-r--r-- | libavcodec/libwebpenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c index 4c22a9b04a..db96e1637b 100644 --- a/libavcodec/libwebpenc.c +++ b/libavcodec/libwebpenc.c @@ -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 = { |