avcodec/scpr: mask bits to prevent out of array read