Commit 179bf86f authored by Derek Buitenhuis's avatar Derek Buitenhuis

opusdec: Remove dead code

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent f7daed85
...@@ -152,14 +152,7 @@ static int opus_init_resample(OpusStreamContext *s) ...@@ -152,14 +152,7 @@ static int opus_init_resample(OpusStreamContext *s)
static int opus_decode_redundancy(OpusStreamContext *s, const uint8_t *data, int size) static int opus_decode_redundancy(OpusStreamContext *s, const uint8_t *data, int size)
{ {
int ret; int ret = ff_opus_rc_dec_init(&s->redundancy_rc, data, size);
enum OpusBandwidth bw = s->packet.bandwidth;
if (s->packet.mode == OPUS_MODE_SILK &&
bw == OPUS_BANDWIDTH_MEDIUMBAND)
bw = OPUS_BANDWIDTH_WIDEBAND;
ret = ff_opus_rc_dec_init(&s->redundancy_rc, data, size);
if (ret < 0) if (ret < 0)
goto fail; goto fail;
ff_opus_rc_dec_raw_init(&s->redundancy_rc, data + size, size); ff_opus_rc_dec_raw_init(&s->redundancy_rc, data + size, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment