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
2f2bc2e2
Commit
2f2bc2e2
authored
May 08, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/webp: Check for VP8X after other VP8 chunks
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
cfbebe9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
webp.c
libavcodec/webp.c
+4
-0
No files found.
libavcodec/webp.c
View file @
2f2bc2e2
...
...
@@ -1423,6 +1423,10 @@ static int webp_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
bytestream2_skip
(
&
gb
,
chunk_size
);
break
;
case
MKTAG
(
'V'
,
'P'
,
'8'
,
'X'
):
if
(
s
->
width
||
s
->
height
||
*
got_frame
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Canvas dimensions are already set
\n
"
);
return
AVERROR_INVALIDDATA
;
}
vp8x_flags
=
bytestream2_get_byte
(
&
gb
);
bytestream2_skip
(
&
gb
,
3
);
s
->
width
=
bytestream2_get_le24
(
&
gb
)
+
1
;
...
...
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