diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-15 13:48:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-15 13:48:35 +0300 |
commit | 4be4c06671551da62edf197df6e7ad8c89dc2fe0 (patch) | |
tree | 17592201ff98be5c4d6fbd69b9f8c102a168365e /source/blender/io | |
parent | 80edc0e972a2dde85509968832ce21f46d86ce58 (diff) |
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.
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/avi/intern/avi_rgb.c | 3 |
1 files changed, 2 insertions, 1 deletions
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++; } |