Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-04-19 01:09:14 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2020-05-12 02:00:28 +0300
commitdde86d0ddfa2697e2519ce2b0a4d918fa11691b5 (patch)
treed2a50b338078b4616d29c22e5996dd7923c1e179 /libavfilter/vf_spp.c
parent70d396c8afa4275dbd54e79805ab2c34124c1b65 (diff)
avfilter/vf_spp: Remove unused AVCodecContext
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vf_spp.c')
-rw-r--r--libavfilter/vf_spp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c
index 7381938f7f..1b934aa9d7 100644
--- a/libavfilter/vf_spp.c
+++ b/libavfilter/vf_spp.c
@@ -460,9 +460,8 @@ static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
SPPContext *s = ctx->priv;
int ret;
- s->avctx = avcodec_alloc_context3(NULL);
s->dct = avcodec_dct_alloc();
- if (!s->avctx || !s->dct)
+ if (!s->dct)
return AVERROR(ENOMEM);
if (opts) {
@@ -489,10 +488,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->temp);
av_freep(&s->src);
- if (s->avctx) {
- avcodec_close(s->avctx);
- av_freep(&s->avctx);
- }
av_freep(&s->dct);
av_freep(&s->non_b_qp_table);
}