summaryrefslogtreecommitdiff
path: root/libavcodec/libvpxenc.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-02-28 10:36:16 +0100
committerClément Bœsch <u@pkh.me>2015-03-02 21:27:21 +0100
commit546d69eb43e831bb67a8a0d54a8762a315710c94 (patch)
tree0f25608330566a2abfaa205d06be99b66f9671f0 /libavcodec/libvpxenc.c
parentcb39fe9336539f7a88c5ac8e2ad6c840338c0306 (diff)
avcodec: use av_frame_free() for coded_frame
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 9ad0c548b9..69c3a459d6 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -253,7 +253,7 @@ static av_cold int vp8_free(AVCodecContext *avctx)
if (ctx->is_alpha)
vpx_codec_destroy(&ctx->encoder_alpha);
av_freep(&ctx->twopass_stats.buf);
- av_freep(&avctx->coded_frame);
+ av_frame_free(&avctx->coded_frame);
av_freep(&avctx->stats_out);
free_frame_list(ctx->coded_frame_list);
return 0;