mpeg12: check scantable indices in all decode_block functions
authorJanne Grunau <janne-libav@jannau.net>
Fri, 24 Jan 2014 15:22:44 +0000 (16:22 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:05:19 +0000 (20:05 -0400)
commit9938e450c8575e0a4640dcbefb87d26d6bab9e4d
treede2fd76ff9a715ef6e035c68e3a6a30d341e6ed1
parent71b8c8430cf3f7056849257324fc39b423075ba1
mpeg12: check scantable indices in all decode_block functions

Add checks to the fast functions used with CODEC_FLAGS2_FAST and move
the check for all other functions to before the invalid memory is
accessed. Fixes https://trac.videolan.org/vlc/ticket/9713 with
CODEC_FLAGS2_FAST.

CC: libav-stable@libav.org
libavcodec/mpeg12.c