Remove dead code

rg==NULL is dealt with above. Reported by Coverity.

Change-Id: I703698efaf9d5dd8cfd16309d3d83040a76c0749
This commit is contained in:
Vincent Rabaud
2025-09-29 15:29:50 +02:00
parent 74f6afd3e6
commit 13f42ea2d2

View File

@@ -246,11 +246,7 @@ static int ImportYUVAFromRGBA(const uint8_t* r_ptr, const uint8_t* g_ptr,
WebPAccumulateRGBA(r_ptr, g_ptr, b_ptr, a_ptr, /*rgb_stride=*/0,
tmp_rgb, width);
}
if (rg == NULL) {
WebPConvertRGBA32ToUV(tmp_rgb, dst_u, dst_v, uv_width);
} else {
ConvertRowsToUV(tmp_rgb, dst_u, dst_v, uv_width, rg);
}
ConvertRowsToUV(tmp_rgb, dst_u, dst_v, uv_width, rg);
}
}