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
5dc527f9
Commit
5dc527f9
authored
Dec 23, 2019
by
Zhong Li
Committed by
Paul B Mahol
Dec 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/midivid: check return value of init_get_bits8()
Fix CID 1456088 Signed-off-by:
Zhong Li
<
zhongli_dev@126.com
>
parent
94ad5d01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
midivid.c
libavcodec/midivid.c
+4
-2
No files found.
libavcodec/midivid.c
View file @
5dc527f9
...
...
@@ -63,7 +63,7 @@ static int decode_mvdv(MidiVidContext *s, AVCodecContext *avctx, AVFrame *frame)
if
(
intra_flag
)
{
nb_blocks
=
(
avctx
->
width
/
2
)
*
(
avctx
->
height
/
2
);
}
else
{
int
skip_linesize
;
int
ret
,
skip_linesize
;
nb_blocks
=
bytestream2_get_le32
(
gb
);
skip_linesize
=
avctx
->
width
>>
1
;
...
...
@@ -73,7 +73,9 @@ static int decode_mvdv(MidiVidContext *s, AVCodecContext *avctx, AVFrame *frame)
if
(
bytestream2_get_bytes_left
(
gb
)
<
mask_size
)
return
AVERROR_INVALIDDATA
;
init_get_bits8
(
&
mask
,
mask_start
,
mask_size
);
ret
=
init_get_bits8
(
&
mask
,
mask_start
,
mask_size
);
if
(
ret
<
0
)
return
ret
;
bytestream2_skip
(
gb
,
mask_size
);
skip
=
s
->
skip
;
...
...
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