avi: Validate sample_size
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 6 May 2015 00:26:57 +0000 (02:26 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 9 May 2015 13:51:31 +0000 (15:51 +0200)
commit4d0ee4962be7e07cdc038a78008ef2e4e47e5f81
tree38c013c1e2b08f9751fe754a64422576a2ee7cf6
parentb34257eefd98cb768ea2f53a390b8684d51e689a
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