avcodec/dcadec: Check scale table index