diff options
author | James Almer <jamrial@gmail.com> | 2013-04-10 04:52:08 -0300 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-10 09:56:48 +0200 |
commit | 89388a953a51abd61efeb1d10f621d2ce408e44e (patch) | |
tree | 6c6c6f82c0fe4e46ec89f970a9c85ebcc6085d2f /libavformat/pjsdec.c | |
parent | 2383068cbfac11aedd2f133b2d00b0c1cb58b5f9 (diff) | |
download | ffmpeg-89388a953a51abd61efeb1d10f621d2ce408e44e.tar.gz |
Replace all occurrences of PRI in sscanf() calls with SCN
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/pjsdec.c')
-rw-r--r-- | libavformat/pjsdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/pjsdec.c b/libavformat/pjsdec.c index ef2b626a5b..a69a31660d 100644 --- a/libavformat/pjsdec.c +++ b/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; |