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
289c6000
Commit
289c6000
authored
Jul 16, 2011
by
Rafaël Carré
Committed by
Diego Biurrun
Jul 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not decode RV30 files if the extradata is too small
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
b8783b98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
rv30.c
libavcodec/rv30.c
+1
-0
No files found.
libavcodec/rv30.c
View file @
289c6000
...
@@ -256,6 +256,7 @@ static av_cold int rv30_decode_init(AVCodecContext *avctx)
...
@@ -256,6 +256,7 @@ static av_cold int rv30_decode_init(AVCodecContext *avctx)
if
(
avctx
->
extradata_size
-
8
<
(
r
->
rpr
-
1
)
*
2
){
if
(
avctx
->
extradata_size
-
8
<
(
r
->
rpr
-
1
)
*
2
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"Insufficient extradata - need at least %d bytes, got %d
\n
"
,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Insufficient extradata - need at least %d bytes, got %d
\n
"
,
6
+
r
->
rpr
*
2
,
avctx
->
extradata_size
);
6
+
r
->
rpr
*
2
,
avctx
->
extradata_size
);
return
EINVAL
;
}
}
r
->
parse_slice_header
=
rv30_parse_slice_header
;
r
->
parse_slice_header
=
rv30_parse_slice_header
;
r
->
decode_intra_types
=
rv30_decode_intra_types
;
r
->
decode_intra_types
=
rv30_decode_intra_types
;
...
...
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