avi: Validate sample_size
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 6 May 2015 00:26:57 +0000 (02:26 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 14 May 2015 17:13:13 +0000 (19:13 +0200)
commit0f7e67be3a56e20abcabf9e6698935e6188e7282
tree47497435ecb8259adda67c121f8b3975ba9bce11
parent0856eea7707ff142ee6a5b7bb2b59f5de38b720b
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>
(cherry picked from commit 4d0ee4962be7e07cdc038a78008ef2e4e47e5f81)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Conflicts:
libavformat/avidec.c
libavformat/avidec.c