if (useDefaultScalingMatrixFlag) {
out.writeSE(0, "SPS: ");
return;
}
int lastScale = 8;
int nextScale = 8;
for (int j = 0; j < scalingList.length; j++) {
if (nextScale != 0) {
int deltaScale = scalingList[j] - lastScale - 256;
out.writeSE(deltaScale, "SPS: ");
}
lastScale = scalingList[j];
}