From 4be4c06671551da62edf197df6e7ad8c89dc2fe0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 15 Mar 2020 21:48:35 +1100 Subject: Cleanup: redundant checks In some cases moved the checks into asserts, to ensure changes in the future don't cause the checks to become necessary again. --- source/blender/io/avi/intern/avi_rgb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/io/avi') diff --git a/source/blender/io/avi/intern/avi_rgb.c b/source/blender/io/avi/intern/avi_rgb.c index d449556e79b..51aa9a6280b 100644 --- a/source/blender/io/avi/intern/avi_rgb.c +++ b/source/blender/io/avi/intern/avi_rgb.c @@ -97,7 +97,8 @@ void *avi_converter_from_avi_rgb(AviMovie *movie, int stream, unsigned char *buf if (buf) { size_t rowstride = movie->header->Width * 3; - if ((bits != 16) && (movie->header->Width % 2)) { + BLI_assert(bits != 16); + if (movie->header->Width % 2) { rowstride++; } -- cgit v1.2.3