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
0cf5588d
Commit
0cf5588d
authored
Jul 10, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hq_hqa: Fix decoding when INFO section is absent
parent
a5354084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
hq_hqa.c
libavcodec/hq_hqa.c
+4
-2
No files found.
libavcodec/hq_hqa.c
View file @
0cf5588d
...
...
@@ -310,9 +310,11 @@ static int hq_hqa_decode_frame(AVCodecContext *avctx, void *data,
return
AVERROR_INVALIDDATA
;
}
info_tag
=
bytestream2_
get
_le32
(
&
ctx
->
gbc
);
info_tag
=
bytestream2_
peek
_le32
(
&
ctx
->
gbc
);
if
(
info_tag
==
MKTAG
(
'I'
,
'N'
,
'F'
,
'O'
))
{
int
info_size
=
bytestream2_get_le32
(
&
ctx
->
gbc
);
int
info_size
;
bytestream2_skip
(
&
ctx
->
gbc
,
4
);
info_size
=
bytestream2_get_le32
(
&
ctx
->
gbc
);
if
(
bytestream2_get_bytes_left
(
&
ctx
->
gbc
)
<
info_size
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Invalid INFO size (%d).
\n
"
,
info_size
);
return
AVERROR_INVALIDDATA
;
...
...
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