History

uint → uint32_t

Sigrid Solveig Haflínudóttir committed 1 year ago

Commit b0a2b161 parent 0c1f9df2 files · +4 −4Browse files

Unified · Split

2 files
  1. id3v2.c +3 −3
  2. m4a.c +1 −1
id3v2.c+3−3
@@ -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
16static int16static int
17v2cb(Tagctx *ctx, char *k, char *v)17v2cb(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
304static const uint samplerates[4][4] = {304static 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)
m4a.c+1−1
@@ -8,7 +8,7 @@ int · 7 unmodified lines
8tagm4a(Tagctx *ctx)8tagm4a(Tagctx *ctx)
9{9{
10 uint64_t duration;10 uint64_t duration;
11 uint x;11 uint32_t x;
12 uint8_t *d;12 uint8_t *d;
13 char *k, *v;13 char *k, *v;
14 int sz, type, dtype, i, skip, n;14 int sz, type, dtype, i, skip, n;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t