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
3f98848d
Commit
3f98848d
authored
Dec 23, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
au: validate bits-per-sample separately from codec tag
parent
71194ef6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
au.c
libavformat/au.c
+8
-1
No files found.
libavformat/au.c
View file @
3f98848d
...
...
@@ -64,6 +64,7 @@ static int au_read_header(AVFormatContext *s)
unsigned
int
tag
;
AVIOContext
*
pb
=
s
->
pb
;
unsigned
int
id
,
channels
,
rate
;
int
bps
;
enum
AVCodecID
codec
;
AVStream
*
st
;
...
...
@@ -80,7 +81,13 @@ static int au_read_header(AVFormatContext *s)
codec
=
ff_codec_get_id
(
codec_au_tags
,
id
);
if
(
!
av_get_bits_per_sample
(
codec
))
{
if
(
codec
==
AV_CODEC_ID_NONE
)
{
av_log_ask_for_sample
(
s
,
"unknown or unsupported codec tag: %d
\n
"
,
id
);
return
AVERROR_PATCHWELCOME
;
}
bps
=
av_get_bits_per_sample
(
codec
);
if
(
!
bps
)
{
av_log_ask_for_sample
(
s
,
"could not determine bits per sample
\n
"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
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