vc1dec: Undo mpegvideo initialization if unable to allocate tables
authorMartin Storsjö <martin@martin.st>
Fri, 20 Sep 2013 08:16:57 +0000 (11:16 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 22 Sep 2013 18:02:47 +0000 (21:02 +0300)
commitb772b0e28eba6abf76d86ee8c6e459a86642db5a
treea093682614e5d81d5f128d7e9c243f930eba51a2
parentede508443e4bf57dc1e019fac81bf6244b88fbd3
vc1dec: Undo mpegvideo initialization if unable to allocate tables

Previously, s->context_initialized was left set to 1
if ff_vc1_decode_init_alloc_tables failed, skipping the
initialization completely on the next decode call.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/vc1dec.c