diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-07-03 23:17:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-07-11 15:14:14 +0200 |
commit | faf0d813094d292d6b8d78afd2519f87ae318ace (patch) | |
tree | 03fecf79927adfb96b369173cdd33453942f3377 /libavcodec/opus/dec.c | |
parent | ba2c9acedb13e32c5622cb5d49657b34940088bc (diff) | |
download | ffmpeg-faf0d813094d292d6b8d78afd2519f87ae318ace.tar.gz |
avcodec/opus/dec: Remove unused parameters
The parameters here are not only unused, but buf_size's value
is actually wrong when flushing (it comes from the subpacket
of the last packet sent and is therefore outdated).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/opus/dec.c')
-rw-r--r-- | libavcodec/opus/dec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/opus/dec.c b/libavcodec/opus/dec.c index dbefcddb0c..acf54582ce 100644 --- a/libavcodec/opus/dec.c +++ b/libavcodec/opus/dec.c @@ -393,9 +393,7 @@ static int opus_decode_frame(OpusStreamContext *s, const uint8_t *data, int size return samples; } -static int opus_decode_subpacket(OpusStreamContext *s, - const uint8_t *buf, int buf_size, - int nb_samples) +static int opus_decode_subpacket(OpusStreamContext *s, const uint8_t *buf) { int output_samples = 0; int flush_needed = 0; @@ -578,8 +576,7 @@ static int opus_decode_packet(AVCodecContext *avctx, AVFrame *frame, s->silk_samplerate = get_silk_samplerate(s->packet.config); } - ret = opus_decode_subpacket(&c->streams[i], buf, s->packet.data_size, - coded_samples); + ret = opus_decode_subpacket(&c->streams[i], buf); if (ret < 0) return ret; s->decoded_samples = ret; |