wamenc: handle failure to encode.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 13 May 2013 19:38:20 +0000 (21:38 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 29 May 2013 20:31:16 +0000 (22:31 +0200)
commitdccaad3bcdc5762141527cb7db7c87f34517f097
tree029f847d7c3894b6449baf65d996600cf29855be
parent38fefbc474affdbbac3ad53c2094fe56ddb105a0
wamenc: handle failure to encode.

This is necessary since the switch to floating point
input means there is no longer sufficient input data
validation.
There is a good chance that other encoders are affected
by similar issues.
This problem can be triggered by trying to encode
extremely large values and probably also with Inf and
possibly also NaNs.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/wmaenc.c