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
3652dd5d
Commit
3652dd5d
authored
Dec 09, 2015
by
Kieran Kunhya
Committed by
Rostislav Pehlivanov
Dec 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diracdec: Fix FPE on invalid low_delay data
parent
cdf8c903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
diracdec.c
libavcodec/diracdec.c
+5
-0
No files found.
libavcodec/diracdec.c
View file @
3652dd5d
...
@@ -2002,6 +2002,11 @@ static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int
...
@@ -2002,6 +2002,11 @@ static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int
if
(
s
->
version
.
minor
==
2
&&
parse_code
==
0x88
)
if
(
s
->
version
.
minor
==
2
&&
parse_code
==
0x88
)
s
->
ld_picture
=
1
;
s
->
ld_picture
=
1
;
if
(
s
->
low_delay
&&
!
(
s
->
ld_picture
||
s
->
hq_picture
)
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Invalid low delay flag
\n
"
);
return
AVERROR_INVALIDDATA
;
}
if
((
ret
=
get_buffer_with_edge
(
avctx
,
pic
->
avframe
,
(
parse_code
&
0x0C
)
==
0x0C
?
AV_GET_BUFFER_FLAG_REF
:
0
))
<
0
)
if
((
ret
=
get_buffer_with_edge
(
avctx
,
pic
->
avframe
,
(
parse_code
&
0x0C
)
==
0x0C
?
AV_GET_BUFFER_FLAG_REF
:
0
))
<
0
)
return
ret
;
return
ret
;
s
->
current_picture
=
pic
;
s
->
current_picture
=
pic
;
...
...
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