Fix warnings reported by -Wshadow: Part2: av1 directory
While we are at it: - Rename some variables to more meaningful names - Reuse some common consts from a header instead of redefining them. Cherry-picked from aomedia/master: 863b0499 Change-Id: Ida5de713156dc0126a27f90fdd36d29a398a3c88
This commit is contained in:
@@ -3465,16 +3465,13 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
|
||||
|
||||
setup_segmentation(cm, rb);
|
||||
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < MAX_SEGMENTS; ++i) {
|
||||
const int qindex = cm->seg.enabled
|
||||
? av1_get_qindex(&cm->seg, i, cm->base_qindex)
|
||||
: cm->base_qindex;
|
||||
xd->lossless[i] = qindex == 0 && cm->y_dc_delta_q == 0 &&
|
||||
cm->uv_dc_delta_q == 0 && cm->uv_ac_delta_q == 0;
|
||||
xd->qindex[i] = qindex;
|
||||
}
|
||||
for (i = 0; i < MAX_SEGMENTS; ++i) {
|
||||
const int qindex = cm->seg.enabled
|
||||
? av1_get_qindex(&cm->seg, i, cm->base_qindex)
|
||||
: cm->base_qindex;
|
||||
xd->lossless[i] = qindex == 0 && cm->y_dc_delta_q == 0 &&
|
||||
cm->uv_dc_delta_q == 0 && cm->uv_ac_delta_q == 0;
|
||||
xd->qindex[i] = qindex;
|
||||
}
|
||||
|
||||
setup_segmentation_dequant(cm);
|
||||
|
||||
Reference in New Issue
Block a user