summaryrefslogtreecommitdiffstats
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index 4af4ed2ca4..481454dc87 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -451,14 +451,14 @@ static void init_mad(void* mad_frame_overlap)
#else
/* Don't know what this is - use bytewise comparisons */
#define CMP_3_CONST(a, b) \
- (( ((a)[0] ^ ((b) >> 24)) | \
- ((a)[1] ^ ((b) << 8 >> 24)) | \
- ((a)[2] ^ ((b) << 16 >> 24)) ) == 0)
+ (( ((a)[0] ^ (((b) >> 24) & 0xff)) | \
+ ((a)[1] ^ (((b) >> 16) & 0xff)) | \
+ ((a)[2] ^ (((b) >> 8) & 0xff)) ) == 0)
#define CMP_4_CONST(a, b) \
- (( ((a)[0] ^ ((b) >> 24)) | \
- ((a)[1] ^ ((b) << 8 >> 24)) | \
- ((a)[2] ^ ((b) << 16 >> 24)) | \
- ((a)[3] ^ ((b) << 24 >> 24)) ) == 0)
+ (( ((a)[0] ^ (((b) >> 24) & 0xff)) | \
+ ((a)[1] ^ (((b) >> 16) & 0xff)) | \
+ ((a)[2] ^ (((b) >> 8) & 0xff)) | \
+ ((a)[3] ^ ((b) & 0xff)) ) == 0)
#endif
/* Codes for various header byte sequences - MSB represents lowest memory