swr: limit buffer size for discarding.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Jan 2013 14:53:01 +0000 (15:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Jan 2013 15:04:41 +0000 (16:04 +0100)
commitb481d09bd9c7b3cba617a7811d7015ea0472e4ee
treeea10238fbe86e66fa2f4629c7f3f1c36c78a4adc
parente8bab4c6fca02c758e253b235ead49fce2b956df
swr: limit buffer size for discarding.

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>
libswresample/swresample.c