X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fcommon.h;h=cf361ca15e5dc4ee6adf5322c226f13efd8ae942;hb=68230eb3753f7496c4ba13e727dd48a5997eb23c;hp=d60e8638a52c17b25117da4b701e5a8502808eb3;hpb=30ba924bc8cec04f53089adbf4ef51b52c4b4b72;p=ffmpeg diff --git a/libavutil/common.h b/libavutil/common.h index d60e8638a52..cf361ca15e5 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -220,8 +220,8 @@ static av_always_inline av_const int av_popcount_c(uint32_t x) return (x + (x >> 16)) & 0x3F; } -#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24)) -#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((a) << 24)) +#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) +#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24)) /** * Convert a UTF-8 character (up to 4 bytes) to its 32-bit UCS-4 encoded form.