OSDN Git Service

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)
committerJanne Grunau <janne-libav@jannau.net>
Sat, 25 Jan 2014 20:50:20 +0000 (21:50 +0100)
commit6d93307f8df81808f0dcdbc064b848054a6e83b3
tree7990c6e1313b57d0b666d978156bc2beb05d0886
parentfb0c9d41d685abb58575c5482ca33b8cd457c5ec
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/mpeg12dec.c