diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-12-31 23:31:31 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-01-02 15:33:57 +0100 |
commit | 3879555cd540f7df02ef527fcbc0fda4c68fbfa9 (patch) | |
tree | 3a45b52c2a17815762ceb34d1a389ee1fa6c2e36 /libavfilter/af_afir.h | |
parent | 62da0b4a741a064f118a0eece496d6bcc437ec91 (diff) | |
download | ffmpeg-3879555cd540f7df02ef527fcbc0fda4c68fbfa9.tar.gz |
avfilter/afir_template: make IR transitions artifacts free
Diffstat (limited to 'libavfilter/af_afir.h')
-rw-r--r-- | libavfilter/af_afir.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavfilter/af_afir.h b/libavfilter/af_afir.h index 21b0cf729e..a9f6d217f4 100644 --- a/libavfilter/af_afir.h +++ b/libavfilter/af_afir.h @@ -28,6 +28,8 @@ #include "avfilter.h" #include "af_afirdsp.h" +#define MAX_IR_STREAMS 32 + typedef struct AudioFIRSegment { int nb_partitions; int part_size; @@ -47,17 +49,14 @@ typedef struct AudioFIRSegment { AVFrame *tempin; AVFrame *tempout; AVFrame *buffer; - AVFrame *coeff; + AVFrame *coeff[MAX_IR_STREAMS]; AVFrame *input; AVFrame *output; - AVFrame *loaded; AVTXContext **ctx, **tx, **itx; av_tx_fn ctx_fn, tx_fn, itx_fn; } AudioFIRSegment; -#define MAX_IR_STREAMS 32 - typedef struct AudioFIRContext { const AVClass *class; @@ -91,7 +90,7 @@ typedef struct AudioFIRContext { AVFrame *in; AVFrame *ir[MAX_IR_STREAMS]; - AVFrame *norm_ir; + AVFrame *norm_ir[MAX_IR_STREAMS]; AVFrame *video; int min_part_size; int64_t pts; |