resample: allocate a large enough output buffer
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 14 Mar 2012 17:01:32 +0000 (13:01 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 17 Mar 2012 17:37:44 +0000 (13:37 -0400)
commit6ca3b248e21fc48418c4221fc92c2eecaf07cb9b
treea7bd4fd264a07ac30061e044fa41d02eb457002a
parentb1740cb00a0dc91c0e4f3a89f469c8f1fd758dc0
resample: allocate a large enough output buffer

Fixes invalid writes and crashes when doing conversions such as stereo to 5.1
channels or sample rate conversion on 5.1 channels.
libavcodec/resample.c