[Scummvm-git-logs] scummvm master -> f76932386b9c296f4b97af9afb9a497e41c3d2c0

whoozle noreply at scummvm.org
Thu Nov 5 00:15:07 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
f76932386b IMAGE: VC1: JANITORIAL: fix warning


Commit: f76932386b9c296f4b97af9afb9a497e41c3d2c0
    https://github.com/scummvm/scummvm/commit/f76932386b9c296f4b97af9afb9a497e41c3d2c0
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-11-05T00:12:46Z

Commit Message:
IMAGE: VC1: JANITORIAL: fix warning

Changed paths:
    image/codecs/vc1.cpp


diff --git a/image/codecs/vc1.cpp b/image/codecs/vc1.cpp
index 3966dca3011..6cdee18fbc0 100644
--- a/image/codecs/vc1.cpp
+++ b/image/codecs/vc1.cpp
@@ -9269,7 +9269,7 @@ static inline int get_luma_mv(VC1Context *v, int dir, int16 *tx, int16 *ty) {
 
 static inline int get_chroma_mv(VC1Context *v, int dir, int16 *tx, int16 *ty) {
 	PictureState *s = &v->s;
-	int idx = !v->mb_type[s->block_index[0]] | (!v->mb_type[s->block_index[1]] << 1) |
+	int idx = (!v->mb_type[s->block_index[0]]) | (!v->mb_type[s->block_index[1]] << 1) |
 			  (!v->mb_type[s->block_index[2]] << 2) | (!v->mb_type[s->block_index[3]] << 3);
 	static const uint8 index2[16] = {0, 0, 0, 0x01, 0, 0x02, 0x12, 0, 0, 0x03, 0x13, 0, 0x23, 0, 0, 0};
 	int valid_count = popcount4[idx];




More information about the Scummvm-git-logs mailing list