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
a346aaf1
Commit
a346aaf1
authored
Oct 22, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g726dec: do not validate sample rate
For decoding it does not really matter what the sample rate is.
parent
e00eb03c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
g726.c
libavcodec/g726.c
+0
-8
No files found.
libavcodec/g726.c
View file @
a346aaf1
...
@@ -422,14 +422,6 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
...
@@ -422,14 +422,6 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
{
{
G726Context
*
c
=
avctx
->
priv_data
;
G726Context
*
c
=
avctx
->
priv_data
;
if
(
avctx
->
strict_std_compliance
>=
FF_COMPLIANCE_STRICT
&&
avctx
->
sample_rate
!=
8000
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Only 8kHz sample rate is allowed when "
"the compliance level is strict. Reduce the compliance level "
"if you wish to decode the stream anyway.
\n
"
);
return
AVERROR
(
EINVAL
);
}
avctx
->
channels
=
1
;
avctx
->
channels
=
1
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_MONO
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_MONO
;
...
...
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