kgv1: use avctx->get/release_buffer().
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 29 Dec 2011 17:07:32 +0000 (09:07 -0800)
committerReinhard Tartler <siretart@tauware.de>
Sun, 26 Feb 2012 09:03:16 +0000 (10:03 +0100)
commite537dc230b2e123be8aebdaeee5a7d7787328b0b
tree6dcaad8cc10926f50782e249ece35cdacba2329f
parent19f4943d12968a6dfb7c2915da191489dc614b87
kgv1: use avctx->get/release_buffer().

Also fixes crashes on corrupt bitstreams.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 33cd32b389864f2437c94e6fd7dc109ff5f0ed06)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/kgv1dec.c