[FFmpeg-cvslog] avcodec/sipr: Remove write-only AVCodecContext*
Andreas Rheinhardt
git at videolan.org
Sun Oct 1 02:11:49 EEST 2023
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep 28 21:24:14 2023 +0200| [7d1401ed02040f6b4ecc429c3b21c96ec86890e9] | committer: Andreas Rheinhardt
avcodec/sipr: Remove write-only AVCodecContext*
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d1401ed02040f6b4ecc429c3b21c96ec86890e9
---
libavcodec/sipr.c | 1 -
libavcodec/sipr.h | 3 ---
2 files changed, 4 deletions(-)
diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index 692b59b3e8..3ddc579f09 100644
--- a/libavcodec/sipr.c
+++ b/libavcodec/sipr.c
@@ -532,7 +532,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, AVFrame *frame,
int subframe_size = ctx->mode == MODE_16k ? L_SUBFR_16k : SUBFR_SIZE;
int i, ret;
- ctx->avctx = avctx;
if (avpkt->size < (mode_par->bits_per_frame >> 3)) {
av_log(avctx, AV_LOG_ERROR,
"Error processing packet: packet size (%d) too small\n",
diff --git a/libavcodec/sipr.h b/libavcodec/sipr.h
index e1ef35d658..e7073987ed 100644
--- a/libavcodec/sipr.h
+++ b/libavcodec/sipr.h
@@ -24,7 +24,6 @@
#ifndef AVCODEC_SIPR_H
#define AVCODEC_SIPR_H
-#include "avcodec.h"
#include "acelp_pitch_delay.h"
#include "libavutil/mem_internal.h"
@@ -63,8 +62,6 @@ typedef struct SiprParameters {
} SiprParameters;
typedef struct SiprContext {
- AVCodecContext *avctx;
-
SiprMode mode;
float past_pitch_gain;
More information about the ffmpeg-cvslog
mailing list