diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-11-11 17:40:27 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-10-28 13:28:36 +0200 |
commit | 3ec6f855d0f21d90a0494fb798c4cf203fdb3db0 (patch) | |
tree | 7f1d50ca44761d971475712d9dc8ae86fb7902cc /libavcodec | |
parent | 7a2b2b6a92c4b528ecb640790eca0aa790d858f4 (diff) | |
download | ffmpeg-3ec6f855d0f21d90a0494fb798c4cf203fdb3db0.tar.gz |
srt: Adjust signedness of sscanf format strings
Fixes several warnings from -Wformat.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/srtdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c index 3bee3c726f..4c5f6e5fe8 100644 --- a/libavcodec/srtdec.c +++ b/libavcodec/srtdec.c @@ -192,7 +192,7 @@ static const char *read_ts(const char *buf, int *ts_start, int *ts_end, for (i=0; i<2; i++) { /* try to read timestamps in either the first or second line */ int c = sscanf(buf, "%d:%2d:%2d%*1[,.]%3d --> %d:%2d:%2d%*1[,.]%3d" - "%*[ ]X1:%u X2:%u Y1:%u Y2:%u", + "%*[ ]X1:%d X2:%d Y1:%d Y2:%d", &hs, &ms, &ss, ts_start, &he, &me, &se, ts_end, x1, x2, y1, y2); buf += strcspn(buf, "\n") + 1; |