opusdec: Remove dead code

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
pull/265/head
Derek Buitenhuis 8 years ago
parent f7daed8545
commit 179bf86fa2
  1. 9
      libavcodec/opusdec.c

@ -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);

Loading…
Cancel
Save