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
b226af39
Commit
b226af39
authored
Oct 08, 2011
by
Laurent Aimar
Committed by
Michael Niedermayer
Oct 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vqavideo: check for invalid/unsupported version
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6c1fb3e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vqavideo.c
libavcodec/vqavideo.c
+4
-0
No files found.
libavcodec/vqavideo.c
View file @
b226af39
...
...
@@ -138,6 +138,10 @@ static av_cold int vqa_decode_init(AVCodecContext *avctx)
/* load up the VQA parameters from the header */
vqa_header
=
(
unsigned
char
*
)
s
->
avctx
->
extradata
;
s
->
vqa_version
=
vqa_header
[
0
];
if
(
s
->
vqa_version
<
1
||
s
->
vqa_version
>
3
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
" VQA video: unsupported version %d
\n
"
,
s
->
vqa_version
);
return
-
1
;
}
s
->
width
=
AV_RL16
(
&
vqa_header
[
6
]);
s
->
height
=
AV_RL16
(
&
vqa_header
[
8
]);
if
(
av_image_check_size
(
s
->
width
,
s
->
height
,
0
,
avctx
)){
...
...
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