tta: prevents overflows for 32bit integers in header.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 29 Mar 2012 19:44:55 +0000 (12:44 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 2 May 2012 17:16:57 +0000 (10:16 -0700)
commitac80b812cd177553339467ea12548d71c9ef6865
tree1c68089fa4c3f7e773a35d95f19dd4dc63990c43
parent77cfb2563c6bc234a354c1694de8a9eb76a309cf
tta: prevents overflows for 32bit integers in header.

This prevents sample_rate/data_length from going negative, which
caused various crashes and undefined behaviour further down.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/tta.c