summaryrefslogtreecommitdiffstats
path: root/libavcodec/libwebpenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-05-23 14:24:34 -0300
committerJames Almer <jamrial@gmail.com>2015-05-23 14:46:46 -0300
commit8952254ffe7f43a967a3be5fdd40e48d899c2e01 (patch)
treeda4b6e4824f3a88ee2a20299b2a4cceb4c961110 /libavcodec/libwebpenc.c
parent57d9788d1b06eb4a410ce27f3b589fdc847a21d5 (diff)
downloadffmpeg-streaming-8952254ffe7f43a967a3be5fdd40e48d899c2e01.zip
ffmpeg-streaming-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c
index 4c22a9b..db96e16 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 = {
OpenPOWER on IntegriCloud