Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
0b7269e6
Commit
0b7269e6
authored
Dec 17, 2018
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/cbs: Do not use format specifier "z" on Windows.
parent
f22fcd44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
cbs_av1.c
libavcodec/cbs_av1.c
+5
-5
cbs_vp9.c
libavcodec/cbs_vp9.c
+2
-2
No files found.
libavcodec/cbs_av1.c
View file @
0b7269e6
...
...
@@ -773,7 +773,7 @@ static int cbs_av1_split_fragment(CodedBitstreamContext *ctx,
if
(
INT_MAX
/
8
<
size
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_ERROR
,
"Invalid fragment: "
"too large (%
zu
bytes).
\n
"
,
size
);
"too large (%
"
SIZE_SPECIFIER
"
bytes).
\n
"
,
size
);
err
=
AVERROR_INVALIDDATA
;
goto
fail
;
}
...
...
@@ -790,7 +790,7 @@ static int cbs_av1_split_fragment(CodedBitstreamContext *ctx,
if
(
get_bits_left
(
&
gbc
)
<
8
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_ERROR
,
"Invalid OBU: fragment "
"too short (%
zu
bytes).
\n
"
,
size
);
"too short (%
"
SIZE_SPECIFIER
"
bytes).
\n
"
,
size
);
err
=
AVERROR_INVALIDDATA
;
goto
fail
;
}
...
...
@@ -809,7 +809,7 @@ static int cbs_av1_split_fragment(CodedBitstreamContext *ctx,
if
(
size
<
obu_length
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_ERROR
,
"Invalid OBU length: "
"%"
PRIu64
", but only %
zu
bytes remaining in fragment.
\n
"
,
"%"
PRIu64
", but only %
"
SIZE_SPECIFIER
"
bytes remaining in fragment.
\n
"
,
obu_length
,
size
);
err
=
AVERROR_INVALIDDATA
;
goto
fail
;
...
...
@@ -924,7 +924,7 @@ static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
}
else
{
if
(
unit
->
data_size
<
1
+
obu
->
header
.
obu_extension_flag
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_ERROR
,
"Invalid OBU length: "
"unit too short (%
zu
).
\n
"
,
unit
->
data_size
);
"unit too short (%
"
SIZE_SPECIFIER
"
).
\n
"
,
unit
->
data_size
);
return
AVERROR_INVALIDDATA
;
}
obu
->
obu_size
=
unit
->
data_size
-
1
-
obu
->
header
.
obu_extension_flag
;
...
...
@@ -1226,7 +1226,7 @@ static int cbs_av1_write_unit(CodedBitstreamContext *ctx,
if
(
err
<
0
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_ERROR
,
"Unable to allocate a "
"sufficiently large write buffer (last attempt "
"%
zu
bytes).
\n
"
,
priv
->
write_buffer_size
);
"%
"
SIZE_SPECIFIER
"
bytes).
\n
"
,
priv
->
write_buffer_size
);
return
err
;
}
}
...
...
libavcodec/cbs_vp9.c
View file @
0b7269e6
...
...
@@ -457,7 +457,7 @@ static int cbs_vp9_split_fragment(CodedBitstreamContext *ctx,
}
if
(
pos
+
index_size
!=
frag
->
data_size
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_WARNING
,
"Extra padding at "
"end of superframe: %
zu
bytes.
\n
"
,
"end of superframe: %
"
SIZE_SPECIFIER
"
bytes.
\n
"
,
frag
->
data_size
-
(
pos
+
index_size
));
}
...
...
@@ -538,7 +538,7 @@ static int cbs_vp9_write_unit(CodedBitstreamContext *ctx,
if
(
err
<
0
)
{
av_log
(
ctx
->
log_ctx
,
AV_LOG_ERROR
,
"Unable to allocate a "
"sufficiently large write buffer (last attempt "
"%
zu
bytes).
\n
"
,
priv
->
write_buffer_size
);
"%
"
SIZE_SPECIFIER
"
bytes).
\n
"
,
priv
->
write_buffer_size
);
return
err
;
}
}
...
...
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