flvdec: Fix invalid pointer deferences when parsing index