Skip to content
Snippets Groups Projects
Commit a61bc91d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Fix ticket21, temporary audio array was too small.

parent 9d4cb45d
No related branches found
No related tags found
No related merge requests found
...@@ -274,7 +274,7 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl ...@@ -274,7 +274,7 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl
input = s->buffer[0]; input = s->buffer[0];
} }
lenout= 4*nb_samples * s->ratio + 16; lenout= 2*s->output_channels*nb_samples * s->ratio + 16;
if (s->sample_fmt[1] != AV_SAMPLE_FMT_S16) { if (s->sample_fmt[1] != AV_SAMPLE_FMT_S16) {
output_bak = output; output_bak = output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment