This prevents insane memory usage in case of insane input values.
Untested due to lack of a testcase that causes such insane allocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
s->drop_output*=-1;//FIXME find a less hackish solution
s->drop_output*=-1;//FIXME find a less hackish solution
ret=swr_convert(s,tmp_arg,-s->drop_output,in_arg,in_count);//FIXME optimize but this is as good as never called so maybe it doesnt matter
ret=swr_convert(s,tmp_arg,FFMIN(-s->drop_output,MAX_DROP_STEP),in_arg,in_count);//FIXME optimize but this is as good as never called so maybe it doesnt matter