avi: Validate sample_size
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 6 May 2015 00:26:57 +0000 (02:26 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 19 May 2015 11:14:44 +0000 (12:14 +0100)
commita55a70644872027fdf76a75edf12a09c9008880f
tree2219e7e44a7614b40f68f76de1b660914ccbd420
parent21b21aed797b5e636adcf2df811f96a95f208930
avi: Validate sample_size

And either error out or set it to 0 if it is negative.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/avidec.c