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
cb167f29
Commit
cb167f29
authored
May 07, 2017
by
Sean McGovern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_refs: validate the SPS pointer in ff_h264_execute_ref_pic_marking()
Bug-Id: 1036 CC: libav-stable@libav.org
parent
cfd25488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
h264_refs.c
libavcodec/h264_refs.c
+7
-0
No files found.
libavcodec/h264_refs.c
View file @
cb167f29
...
...
@@ -557,6 +557,12 @@ int ff_h264_execute_ref_pic_marking(H264Context *h)
int
current_ref_assigned
=
0
,
err
=
0
;
H264Picture
*
av_uninit
(
pic
);
if
(
!
h
->
ps
.
sps
)
{
av_log
(
h
->
avctx
,
AV_LOG_ERROR
,
"SPS is unset
\n
"
);
err
=
AVERROR_INVALIDDATA
;
goto
out
;
}
if
(
!
h
->
explicit_ref_marking
)
generate_sliding_window_mmcos
(
h
);
mmco_count
=
h
->
nb_mmco
;
...
...
@@ -725,6 +731,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h)
print_short_term
(
h
);
print_long_term
(
h
);
out:
return
(
h
->
avctx
->
err_recognition
&
AV_EF_EXPLODE
)
?
err
:
0
;
}
...
...
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