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
ec2e767b
Commit
ec2e767b
authored
Feb 27, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amr demuxer: do not set AVCodecContext.frame_size.
it is not necessary.
parent
8d1a20aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
amr.c
libavformat/amr.c
+0
-2
No files found.
libavformat/amr.c
View file @
ec2e767b
...
...
@@ -100,14 +100,12 @@ static int amr_read_header(AVFormatContext *s)
st
->
codec
->
codec_tag
=
MKTAG
(
's'
,
'a'
,
'w'
,
'b'
);
st
->
codec
->
codec_id
=
CODEC_ID_AMR_WB
;
st
->
codec
->
sample_rate
=
16000
;
st
->
codec
->
frame_size
=
320
;
}
else
{
st
->
codec
->
codec_tag
=
MKTAG
(
's'
,
'a'
,
'm'
,
'r'
);
st
->
codec
->
codec_id
=
CODEC_ID_AMR_NB
;
st
->
codec
->
sample_rate
=
8000
;
st
->
codec
->
frame_size
=
160
;
}
st
->
codec
->
channels
=
1
;
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
...
...
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