diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-06 13:51:18 -0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-07 15:26:35 -0400 |
commit | 179bf86fa2f5f24d12e625c58ca08223a1e32093 (patch) | |
tree | 31c65b429cf710027a53da9e82ddcf100ce5e569 | |
parent | f7daed854532628c5e83fb7a5da04ae8916379ff (diff) | |
download | ffmpeg-179bf86fa2f5f24d12e625c58ca08223a1e32093.tar.gz |
opusdec: Remove dead code
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavcodec/opusdec.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c index 1110302f9c..5a7ba9dbb4 100644 --- a/libavcodec/opusdec.c +++ b/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) { - int ret; - 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); + int ret = ff_opus_rc_dec_init(&s->redundancy_rc, data, size); if (ret < 0) goto fail; ff_opus_rc_dec_raw_init(&s->redundancy_rc, data + size, size); |