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
9bd35a76
Commit
9bd35a76
authored
Jul 22, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/h264_ps: Be more verbose when truncating likely oversized PPS.
parent
b4054100
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
h264_ps.c
libavcodec/h264_ps.c
+3
-1
No files found.
libavcodec/h264_ps.c
View file @
9bd35a76
...
...
@@ -732,7 +732,9 @@ int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avct
pps
->
data_size
=
gb
->
buffer_end
-
gb
->
buffer
;
if
(
pps
->
data_size
>
sizeof
(
pps
->
data
))
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"Truncating likely oversized PPS
\n
"
);
av_log
(
avctx
,
AV_LOG_WARNING
,
"Truncating likely oversized PPS "
"(%"
SIZE_SPECIFIER
" > %"
SIZE_SPECIFIER
")
\n
"
,
pps
->
data_size
,
sizeof
(
pps
->
data
));
pps
->
data_size
=
sizeof
(
pps
->
data
);
}
memcpy
(
pps
->
data
,
gb
->
buffer
,
pps
->
data_size
);
...
...
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