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
ad194b04
Commit
ad194b04
authored
Jun 25, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xa: abort if number of channels or sample rate is 0
Fixes #2711. Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
da8c9b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
xa.c
libavformat/xa.c
+3
-0
No files found.
libavformat/xa.c
View file @
ad194b04
...
...
@@ -84,6 +84,9 @@ static int xa_read_header(AVFormatContext *s)
avio_skip
(
pb
,
2
);
/* Skip block align */
avio_skip
(
pb
,
2
);
/* Skip bits-per-sample */
if
(
!
st
->
codec
->
channels
||
!
st
->
codec
->
sample_rate
)
return
AVERROR_INVALIDDATA
;
st
->
codec
->
bit_rate
=
av_clip
(
15LL
*
st
->
codec
->
channels
*
8
*
st
->
codec
->
sample_rate
/
28
,
0
,
INT_MAX
);
...
...
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