aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-16 19:40:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-08-23 13:15:16 +0200
commitfb3b1bf5d6ae1540fb3126a4759ddf361d0df158 (patch)
tree33be369cb60c2cff94a6ca5e6025b1caf6416d07
parent8a58f56ad0a0e52325f4481e429c989886524077 (diff)
downloadffmpeg-fb3b1bf5d6ae1540fb3126a4759ddf361d0df158.tar.gz
avcodec/resample: Remove disabled and faulty code
Fixes Ticket5345 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 50ef7361cb5f78c94da2323f3bae86c6bbd618c8) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/resample.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c
index c45aa16cd1..ec311c7bfb 100644
--- a/libavcodec/resample.c
+++ b/libavcodec/resample.c
@@ -290,12 +290,6 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl
short *output_bak = NULL;
int lenout;
- if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) {
- /* nothing to do */
- memcpy(output, input, nb_samples * s->input_channels * sizeof(short));
- return nb_samples;
- }
-
if (s->sample_fmt[0] != AV_SAMPLE_FMT_S16) {
int istride[1] = { s->sample_size[0] };
int ostride[1] = { 2 };