avcodec/sipr: Remove write-only AVCodecContext*
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b2f5899ec2
commit
7d1401ed02
|
@ -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 subframe_size = ctx->mode == MODE_16k ? L_SUBFR_16k : SUBFR_SIZE;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
|
||||||
ctx->avctx = avctx;
|
|
||||||
if (avpkt->size < (mode_par->bits_per_frame >> 3)) {
|
if (avpkt->size < (mode_par->bits_per_frame >> 3)) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Error processing packet: packet size (%d) too small\n",
|
"Error processing packet: packet size (%d) too small\n",
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#ifndef AVCODEC_SIPR_H
|
#ifndef AVCODEC_SIPR_H
|
||||||
#define AVCODEC_SIPR_H
|
#define AVCODEC_SIPR_H
|
||||||
|
|
||||||
#include "avcodec.h"
|
|
||||||
#include "acelp_pitch_delay.h"
|
#include "acelp_pitch_delay.h"
|
||||||
#include "libavutil/mem_internal.h"
|
#include "libavutil/mem_internal.h"
|
||||||
|
|
||||||
|
@ -63,8 +62,6 @@ typedef struct SiprParameters {
|
||||||
} SiprParameters;
|
} SiprParameters;
|
||||||
|
|
||||||
typedef struct SiprContext {
|
typedef struct SiprContext {
|
||||||
AVCodecContext *avctx;
|
|
||||||
|
|
||||||
SiprMode mode;
|
SiprMode mode;
|
||||||
|
|
||||||
float past_pitch_gain;
|
float past_pitch_gain;
|
||||||
|
|
Loading…
Reference in New Issue