mirror of
https://github.com/webmproject/libwebp.git
synced 2025-12-23 21:46:26 +01:00
Remove dead code
rg==NULL is dealt with above. Reported by Coverity. Change-Id: I703698efaf9d5dd8cfd16309d3d83040a76c0749
This commit is contained in:
@@ -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,
|
WebPAccumulateRGBA(r_ptr, g_ptr, b_ptr, a_ptr, /*rgb_stride=*/0,
|
||||||
tmp_rgb, width);
|
tmp_rgb, width);
|
||||||
}
|
}
|
||||||
if (rg == NULL) {
|
ConvertRowsToUV(tmp_rgb, dst_u, dst_v, uv_width, rg);
|
||||||
WebPConvertRGBA32ToUV(tmp_rgb, dst_u, dst_v, uv_width);
|
|
||||||
} else {
|
|
||||||
ConvertRowsToUV(tmp_rgb, dst_u, dst_v, uv_width, rg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user