diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavformat/pjsdec.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavformat/pjsdec.c')
| -rw-r--r-- | ffmpeg/libavformat/pjsdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/libavformat/pjsdec.c b/ffmpeg/libavformat/pjsdec.c index ef2b626..a69a316 100644 --- a/ffmpeg/libavformat/pjsdec.c +++ b/ffmpeg/libavformat/pjsdec.c @@ -39,7 +39,7 @@ static int pjs_probe(AVProbeData *p) int64_t start, end; const unsigned char *ptr = p->buf; - if (sscanf(ptr, "%"PRId64",%"PRId64",%c", &start, &end, &c) == 3) { + if (sscanf(ptr, "%"SCNd64",%"SCNd64",%c", &start, &end, &c) == 3) { size_t q1pos = strcspn(ptr, "\""); size_t q2pos = q1pos + strcspn(ptr + q1pos + 1, "\"") + 1; if (strcspn(ptr, "\r\n") > q2pos) @@ -52,7 +52,7 @@ static int64_t read_ts(char **line, int *duration) { int64_t start, end; - if (sscanf(*line, "%"PRId64",%"PRId64, &start, &end) == 2) { + if (sscanf(*line, "%"SCNd64",%"SCNd64, &start, &end) == 2) { *line += strcspn(*line, "\"") + 1; *duration = end - start; return start; |
