truemotion2: error out if the huffman tree has no nodes.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 22 Feb 2012 20:19:52 +0000 (12:19 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 23 Feb 2012 15:46:25 +0000 (07:46 -0800)
commit2b83e8b7005d531bc78b0fd4f699e9faa54ce9bb
treeb5d751b63bed5c490fcad2de33f465aeeef8c862
parentada4e362b9fa8cef033afb040f99b07069a7a5ee
truemotion2: error out if the huffman tree has no nodes.

This prevents crashers and errors further down when reading nodes in the
empty tree.

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