smacker: check the return value of smacker_decode_tree
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 12 Jun 2013 12:27:00 +0000 (14:27 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 16 Jun 2013 13:56:50 +0000 (15:56 +0200)
commitbbb2945f2dfbc2306c1655bf7eb6e220912a9a7c
tree0841f8d02531d1733f568ba219785eb83ba57f2e
parentf52edef30197735bfb937e9e723ab1e7b31165c6
smacker: check the return value of smacker_decode_tree

Also prevent a memory leak.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/smacker.c