avcodec/cavs: prevent out of array read