twinvq: fix out of bounds array access
authorMans Rullgard <mans@mansr.com>
Tue, 1 May 2012 17:27:19 +0000 (18:27 +0100)
committerMans Rullgard <mans@mansr.com>
Tue, 1 May 2012 19:17:07 +0000 (20:17 +0100)
commit4bf2e7c5f1c0ad3997fd7c9859c16db8e4e16df6
tree72c3aa69ada9538a262e53dc0aa8985c7a84e69f
parent4010d724e1d57858d56bff66fa245f2d5646be6e
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>
libavcodec/twinvq.c