mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_spp: Remove unused AVCodecContext
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
70d396c8af
commit
dde86d0ddf
@ -460,9 +460,8 @@ static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
|
|||||||
SPPContext *s = ctx->priv;
|
SPPContext *s = ctx->priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
s->avctx = avcodec_alloc_context3(NULL);
|
|
||||||
s->dct = avcodec_dct_alloc();
|
s->dct = avcodec_dct_alloc();
|
||||||
if (!s->avctx || !s->dct)
|
if (!s->dct)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
if (opts) {
|
if (opts) {
|
||||||
@ -489,10 +488,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
|
|
||||||
av_freep(&s->temp);
|
av_freep(&s->temp);
|
||||||
av_freep(&s->src);
|
av_freep(&s->src);
|
||||||
if (s->avctx) {
|
|
||||||
avcodec_close(s->avctx);
|
|
||||||
av_freep(&s->avctx);
|
|
||||||
}
|
|
||||||
av_freep(&s->dct);
|
av_freep(&s->dct);
|
||||||
av_freep(&s->non_b_qp_table);
|
av_freep(&s->non_b_qp_table);
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#ifndef AVFILTER_SPP_H
|
#ifndef AVFILTER_SPP_H
|
||||||
#define AVFILTER_SPP_H
|
#define AVFILTER_SPP_H
|
||||||
|
|
||||||
#include "libavcodec/avcodec.h"
|
|
||||||
#include "libavcodec/avdct.h"
|
#include "libavcodec/avdct.h"
|
||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
|
|
||||||
@ -38,7 +37,6 @@ typedef struct SPPContext {
|
|||||||
int temp_linesize;
|
int temp_linesize;
|
||||||
uint8_t *src;
|
uint8_t *src;
|
||||||
uint16_t *temp;
|
uint16_t *temp;
|
||||||
AVCodecContext *avctx;
|
|
||||||
AVDCT *dct;
|
AVDCT *dct;
|
||||||
int8_t *non_b_qp_table;
|
int8_t *non_b_qp_table;
|
||||||
int non_b_qp_alloc_size;
|
int non_b_qp_alloc_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user