twinvq: fix out of bounds array access
authorMans Rullgard <mans@mansr.com>
Tue, 1 May 2012 17:27:19 +0000 (18:27 +0100)
committerDiego Biurrun <diego@biurrun.de>
Fri, 1 Aug 2014 14:51:18 +0000 (07:51 -0700)
commit50493f1f7d2235db811d2991b9e5b330baf7c05a
tree170c91d1af10d69c0b4c3b49edd07284a5852330
parent3e60501f311c50bf234033f206c19d34d889df01
twinvq: fix out of bounds array access

ModeTab.fmode has only 3 elements, so indexing it with ftype
in the initialier for 'size' is invalid when ftype == FT_PPC.

This fixes crashes with gcc 4.8.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4bf2e7c5f1c0ad3997fd7c9859c16db8e4e16df6)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/twinvq.c