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

swresample/swresample: fix sample drop loop end condition


Fixes Ticket3985

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 02f7665a
No related branches found
No related tags found
No related merge requests found
......@@ -663,6 +663,8 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun
in_count = 0;
if(ret>0) {
s->drop_output -= ret;
if (!s->drop_output && !out_arg)
return 0;
continue;
}
......
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