| @@ -11,7 +11,7 @@ · 10 unmodified lines |
| 11 | */ | 11 | */ |
| 12 | #include "tagspriv.h" | 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 | static int | 16 | static int |
| 17 | v2cb(Tagctx *ctx, char *k, char *v) | 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 | {11025, 12000, 8000, 0}, | 305 | {11025, 12000, 8000, 0}, |
| 306 | { 0, 0, 0, 0}, | 306 | { 0, 0, 0, 0}, |
| 307 | {22050, 24000, 16000, 0}, | 307 | {22050, 24000, 16000, 0}, |
| @@ -322,7 +322,7 @@ getduration(Tagctx *ctx, int offset) · 14 unmodified lines |
| 322 | { | 322 | { |
| 323 | uint64_t n, framelen, samplespf, toc; | 323 | uint64_t n, framelen, samplespf, toc; |
| 324 | uint8_t *b; | 324 | uint8_t *b; |
| 325 | uint x; | 325 | uint32_t x; |
| 326 | int xversion, xlayer, xbitrate, i; | 326 | int xversion, xlayer, xbitrate, i; |
| 327 | | 327 | |
| 328 | if(ctx->duration != 0 || ctx->read(ctx, ctx->buf, 256) != 256) | 328 | if(ctx->duration != 0 || ctx->read(ctx, ctx->buf, 256) != 256) |