aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorJames Almer2015-07-21 00:28:57 -0300
committerJames Almer2015-07-21 13:03:25 -0300
commit3e46c7dbbeb02bdbcc8813440ca570a5f9eeba48 (patch)
tree195a3048f1ea3f7e01868613c4754e468447eb5f /libavcodec/options.c
parentc303ad85a9e498ba089e92dfa23fda542684cdc3 (diff)
avcodec/options-test: don't alloc avctx->coded_frame
It's done automatically by avcodec_open2() now. Fixes memleaks in fate-libavcodec-options. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 41471de72f..63a03ace4a 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -318,7 +318,6 @@ static int dummy_init(AVCodecContext *ctx)
//TODO: this code should set every possible pointer that could be set by codec and is not an option;
ctx->extradata_size = 8;
ctx->extradata = av_malloc(ctx->extradata_size);
- ctx->coded_frame = av_frame_alloc();
return 0;
}
@@ -326,7 +325,6 @@ static int dummy_close(AVCodecContext *ctx)
{
av_freep(&ctx->extradata);
ctx->extradata_size = 0;
- av_frame_free(&ctx->coded_frame);
return 0;
}