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
192efcf7
Commit
192efcf7
authored
Apr 07, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_ps: check log2_max_frame_num for validity.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2d0b4bc4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
h264_ps.c
libavcodec/h264_ps.c
+6
-0
No files found.
libavcodec/h264_ps.c
View file @
192efcf7
...
@@ -371,6 +371,12 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
...
@@ -371,6 +371,12 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
}
}
sps
->
log2_max_frame_num
=
get_ue_golomb
(
&
s
->
gb
)
+
4
;
sps
->
log2_max_frame_num
=
get_ue_golomb
(
&
s
->
gb
)
+
4
;
if
(
sps
->
log2_max_frame_num
<
4
||
sps
->
log2_max_frame_num
>
16
)
{
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"illegal log2_max_frame_num %d
\n
"
,
sps
->
log2_max_frame_num
);
goto
fail
;
}
sps
->
poc_type
=
get_ue_golomb_31
(
&
s
->
gb
);
sps
->
poc_type
=
get_ue_golomb_31
(
&
s
->
gb
);
if
(
sps
->
poc_type
==
0
){
//FIXME #define
if
(
sps
->
poc_type
==
0
){
//FIXME #define
...
...
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