wtvenc: use ffio_fill()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
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>
Add AV_HASH_MAX_SIZE.

Makes it easier to use static allocation for the result buffer.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
avformat/mov: Try to detect and support files with invalid sample sizes

Fixes Ticket2605

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>