You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
binkaudio: remove unused copy of AVCodecContext*
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
committed by
Mans Rullgard
parent
9806fbd535
commit
71f88b1f38
@@ -41,7 +41,6 @@ extern const uint16_t ff_wma_critical_freqs[25];
|
|||||||
#define BINK_BLOCK_MAX_SIZE (MAX_CHANNELS << 11)
|
#define BINK_BLOCK_MAX_SIZE (MAX_CHANNELS << 11)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
AVCodecContext *avctx;
|
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
DSPContext dsp;
|
DSPContext dsp;
|
||||||
FmtConvertContext fmt_conv;
|
FmtConvertContext fmt_conv;
|
||||||
@@ -71,7 +70,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
int i;
|
int i;
|
||||||
int frame_len_bits;
|
int frame_len_bits;
|
||||||
|
|
||||||
s->avctx = avctx;
|
|
||||||
dsputil_init(&s->dsp, avctx);
|
dsputil_init(&s->dsp, avctx);
|
||||||
ff_fmt_convert_init(&s->fmt_conv, avctx);
|
ff_fmt_convert_init(&s->fmt_conv, avctx);
|
||||||
|
|
||||||
@@ -86,7 +84,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
s->frame_len = 1 << frame_len_bits;
|
s->frame_len = 1 << frame_len_bits;
|
||||||
|
|
||||||
if (avctx->channels > MAX_CHANNELS) {
|
if (avctx->channels > MAX_CHANNELS) {
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "too many channels: %d\n", avctx->channels);
|
av_log(avctx, AV_LOG_ERROR, "too many channels: %d\n", avctx->channels);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user