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
ab3d241b
Commit
ab3d241b
authored
Jun 01, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ape: adjust some printf format strings to correctly match argument types
parent
8c0fa61a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
ape.c
libavformat/ape.c
+7
-4
No files found.
libavformat/ape.c
View file @
ab3d241b
...
...
@@ -129,9 +129,11 @@ static void ape_dumpinfo(AVFormatContext * s, APEContext * ape_ctx)
}
else
{
for
(
i
=
0
;
i
<
ape_ctx
->
seektablelength
/
sizeof
(
uint32_t
);
i
++
)
{
if
(
i
<
ape_ctx
->
totalframes
-
1
)
{
av_log
(
s
,
AV_LOG_DEBUG
,
"%8d %d (%d bytes)
\n
"
,
i
,
ape_ctx
->
seektable
[
i
],
ape_ctx
->
seektable
[
i
+
1
]
-
ape_ctx
->
seektable
[
i
]);
av_log
(
s
,
AV_LOG_DEBUG
,
"%8d %"
PRIu32
" (%"
PRIu32
" bytes)
\n
"
,
i
,
ape_ctx
->
seektable
[
i
],
ape_ctx
->
seektable
[
i
+
1
]
-
ape_ctx
->
seektable
[
i
]);
}
else
{
av_log
(
s
,
AV_LOG_DEBUG
,
"%8d %
d
\n
"
,
i
,
ape_ctx
->
seektable
[
i
]);
av_log
(
s
,
AV_LOG_DEBUG
,
"%8d %
"
PRIu32
"
\n
"
,
i
,
ape_ctx
->
seektable
[
i
]);
}
}
}
...
...
@@ -169,7 +171,7 @@ static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
ape
->
fileversion
=
avio_rl16
(
pb
);
if
(
ape
->
fileversion
<
APE_MIN_VERSION
||
ape
->
fileversion
>
APE_MAX_VERSION
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Unsupported file version - %
"
PRId16
".%02"
PRId16
"
\n
"
,
av_log
(
s
,
AV_LOG_ERROR
,
"Unsupported file version - %
d.%02d
\n
"
,
ape
->
fileversion
/
1000
,
(
ape
->
fileversion
%
1000
)
/
10
);
return
-
1
;
}
...
...
@@ -253,7 +255,8 @@ static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
return
-
1
;
}
if
(
ape
->
seektablelength
&&
(
ape
->
seektablelength
/
sizeof
(
*
ape
->
seektable
))
<
ape
->
totalframes
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Number of seek entries is less than number of frames: %ld vs. %"
PRIu32
"
\n
"
,
av_log
(
s
,
AV_LOG_ERROR
,
"Number of seek entries is less than number of frames: %zu vs. %"
PRIu32
"
\n
"
,
ape
->
seektablelength
/
sizeof
(
*
ape
->
seektable
),
ape
->
totalframes
);
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