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
92b3caa1
Commit
92b3caa1
authored
May 17, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbis: return meaningful errors
parent
aa2c918f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vorbisdec.c
libavcodec/vorbisdec.c
+2
-2
No files found.
libavcodec/vorbisdec.c
View file @
92b3caa1
...
...
@@ -1370,7 +1370,7 @@ static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc,
if
(
max_output
>
ch_left
*
vlen
)
{
av_log
(
vc
->
avctx
,
AV_LOG_ERROR
,
"Insufficient output buffer
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
av_dlog
(
NULL
,
" residue type 0/1/2 decode begin, ch: %d cpc %d
\n
"
,
ch
,
c_p_c
);
...
...
@@ -1621,7 +1621,7 @@ static int vorbis_parse_audio_packet(vorbis_context *vc, float **floor_ptr)
residue
=
&
vc
->
residues
[
mapping
->
submap_residue
[
i
]];
if
(
ch_left
<
ch
)
{
av_log
(
vc
->
avctx
,
AV_LOG_ERROR
,
"Too many channels in vorbis_floor_decode.
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
if
(
ch
)
{
ret
=
vorbis_residue_decode
(
vc
,
residue
,
ch
,
do_not_decode
,
ch_res_ptr
,
vlen
,
ch_left
);
...
...
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