Commit 72872d02 authored by Michael Niedermayer's avatar Michael Niedermayer

swr: Fix issue with injecting more data than can be used up in the next call.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c5c35554
......@@ -667,7 +667,7 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun
ret2 += ret;
}
if(in_count){
buf_set(&tmp, &s->in_buffer, s->in_buffer_index);
buf_set(&tmp, &s->in_buffer, s->in_buffer_index + s->in_buffer_count);
copy(&tmp, in, in_count);
s->in_buffer_count += in_count;
}
......
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