Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3ec6f855
Commit
3ec6f855
authored
Nov 11, 2015
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srt: Adjust signedness of sscanf format strings
Fixes several warnings from -Wformat.
parent
7a2b2b6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
srtdec.c
libavcodec/srtdec.c
+1
-1
id3v2.c
libavformat/id3v2.c
+1
-1
No files found.
libavcodec/srtdec.c
View file @
3ec6f855
...
...
@@ -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
;
...
...
libavformat/id3v2.c
View file @
3ec6f855
...
...
@@ -276,7 +276,7 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen,
}
if
(
!
(
strcmp
(
key
,
"TCON"
)
&&
strcmp
(
key
,
"TCO"
))
&&
(
sscanf
(
dst
,
"(%
d)"
,
&
genre
)
==
1
||
sscanf
(
dst
,
"%d
"
,
&
genre
)
==
1
)
&&
(
sscanf
(
dst
,
"(%
u)"
,
&
genre
)
==
1
||
sscanf
(
dst
,
"%u
"
,
&
genre
)
==
1
)
&&
genre
<=
ID3v1_GENRE_MAX
)
{
av_freep
(
&
dst
);
dst
=
av_strdup
(
ff_id3v1_genre_str
[
genre
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment