Unified · Split
| @@ -11,7 +11,7 @@ · 10 unmodified lines | ||
| 11 | 11 | */ |
| 12 | 12 | #include "tagspriv.h" |
| 13 | 13 | |
| 14 | −#define synchsafe(d) (uint)(((d)[0]&127)<<21 | ((d)[1]&127)<<14 | ((d)[2]&127)<<7 | ((d)[3]&127)<<0) | |
| 14 | +#define synchsafe(d) (uint32_t)(((d)[0]&127)<<21 | ((d)[1]&127)<<14 | ((d)[2]&127)<<7 | ((d)[3]&127)<<0) | |
| 15 | 15 | |
| 16 | 16 | static int |
| 17 | 17 | v2cb(Tagctx *ctx, char *k, char *v) |
| @@ -301,7 +301,7 @@ static const uint8_t bitrates[4][4][16] = { · 283 unmodified lines | ||
| 301 | 301 | } |
| 302 | 302 | }; |
| 303 | 303 | |
| 304 | −static const uint samplerates[4][4] = { | |
| 304 | +static const uint32_t samplerates[4][4] = { | |
| 305 | 305 | {11025, 12000, 8000, 0}, |
| 306 | 306 | { 0, 0, 0, 0}, |
| 307 | 307 | {22050, 24000, 16000, 0}, |
| @@ -322,7 +322,7 @@ getduration(Tagctx *ctx, int offset) · 14 unmodified lines | ||
| 322 | 322 | { |
| 323 | 323 | uint64_t n, framelen, samplespf, toc; |
| 324 | 324 | uint8_t *b; |
| 325 | − uint x; | |
| 325 | + uint32_t x; | |
| 326 | 326 | int xversion, xlayer, xbitrate, i; |
| 327 | 327 | |
| 328 | 328 | if(ctx->duration != 0 || ctx->read(ctx, ctx->buf, 256) != 256) |
| @@ -8,7 +8,7 @@ int · 7 unmodified lines | ||
| 8 | 8 | tagm4a(Tagctx *ctx) |
| 9 | 9 | { |
| 10 | 10 | uint64_t duration; |
| 11 | − uint x; | |
| 11 | + uint32_t x; | |
| 12 | 12 | uint8_t *d; |
| 13 | 13 | char *k, *v; |
| 14 | 14 | int sz, type, dtype, i, skip, n; |