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
019a28cd
Commit
019a28cd
authored
Jul 26, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanm: Use correct printf conversion specifiers for POSIX int types
parent
59ca29a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
sanm.c
libavcodec/sanm.c
+6
-4
No files found.
libavcodec/sanm.c
View file @
019a28cd
...
...
@@ -1356,14 +1356,14 @@ static int decode_frame(AVCodecContext *avctx, void *data,
pos
=
bytestream2_tell
(
&
ctx
->
gb
);
if
(
bytestream2_get_bytes_left
(
&
ctx
->
gb
)
<
size
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Incorrect chunk size %
d
.
\n
"
,
size
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Incorrect chunk size %
"
PRIu32
"
.
\n
"
,
size
);
break
;
}
switch
(
sig
)
{
case
MKBETAG
(
'N'
,
'P'
,
'A'
,
'L'
):
if
(
size
!=
PALETTE_SIZE
*
3
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Incorrect palette block size %
d
.
\n
"
,
size
);
"Incorrect palette block size %
"
PRIu32
"
.
\n
"
,
size
);
return
AVERROR_INVALIDDATA
;
}
for
(
i
=
0
;
i
<
PALETTE_SIZE
;
i
++
)
...
...
@@ -1389,7 +1389,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
}
}
else
{
if
(
size
<
PALETTE_DELTA
*
2
+
4
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Incorrect palette change block size %d.
\n
"
,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Incorrect palette change block size %"
PRIu32
".
\n
"
,
size
);
return
AVERROR_INVALIDDATA
;
}
...
...
@@ -1412,7 +1413,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
break
;
default:
bytestream2_skip
(
&
ctx
->
gb
,
size
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Unknown/unsupported chunk %x.
\n
"
,
sig
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Unknown/unsupported chunk %"
PRIx32
".
\n
"
,
sig
);
break
;
}
...
...
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