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
8d953175
Commit
8d953175
authored
May 24, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wav: fix various printf warnings related to wrong argument type
parent
e9f4001a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wav.c
libavformat/wav.c
+5
-4
No files found.
libavformat/wav.c
View file @
8d953175
...
...
@@ -235,7 +235,7 @@ static int wav_parse_bext_tag(AVFormatContext *s, int64_t size)
return
ret
;
time_reference
=
avio_rl64
(
s
->
pb
);
snprintf
(
temp
,
sizeof
(
temp
),
"%
lu"
,
time_reference
);
snprintf
(
temp
,
sizeof
(
temp
),
"%
"
PRIu64
,
time_reference
);
if
((
ret
=
av_metadata_set2
(
&
s
->
metadata
,
"time_reference"
,
temp
,
0
))
<
0
)
return
ret
;
...
...
@@ -248,11 +248,12 @@ static int wav_parse_bext_tag(AVFormatContext *s, int64_t size)
/* the string formatting below is per SMPTE 330M-2004 Annex C */
if
(
umid_parts
[
4
]
==
0
&&
umid_parts
[
5
]
==
0
&&
umid_parts
[
6
]
==
0
&&
umid_parts
[
7
]
==
0
)
{
/* basic UMID */
snprintf
(
temp
,
sizeof
(
temp
),
"0x%016
lX%016lX%016lX%016lX"
,
snprintf
(
temp
,
sizeof
(
temp
),
"0x%016
"
PRIX64
"%016"
PRIX64
"%016"
PRIX64
"%016"
PRIX64
,
umid_parts
[
0
],
umid_parts
[
1
],
umid_parts
[
2
],
umid_parts
[
3
]);
}
else
{
/* extended UMID */
snprintf
(
temp
,
sizeof
(
temp
),
"0x%016lX%016lX%016lX%016lX%016lX%016lX%016lX%016lX"
,
snprintf
(
temp
,
sizeof
(
temp
),
"0x%016"
PRIX64
"%016"
PRIX64
"%016"
PRIX64
"%016"
PRIX64
"0x%016"
PRIX64
"%016"
PRIX64
"%016"
PRIX64
"%016"
PRIX64
,
umid_parts
[
0
],
umid_parts
[
1
],
umid_parts
[
2
],
umid_parts
[
3
],
umid_parts
[
4
],
umid_parts
[
5
],
umid_parts
[
6
],
umid_parts
[
7
]);
}
...
...
@@ -320,7 +321,7 @@ static int wav_read_header(AVFormatContext *s,
sample_count
=
avio_rl64
(
pb
);
if
(
data_size
<
0
||
sample_count
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"negative data_size and/or sample_count in "
"ds64: data_size = %
li, sample_count = %li
\n
"
,
"ds64: data_size = %
"
PRId64
", sample_count = %"
PRId64
"
\n
"
,
data_size
,
sample_count
);
return
AVERROR_INVALIDDATA
;
}
...
...
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