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
a487378e
Commit
a487378e
authored
Nov 03, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set frame_size for AMR_NB in mov.
This copies the behaviour of the amr demuxer.
parent
4eb86d34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mov.c
libavformat/mov.c
+5
-2
No files found.
libavformat/mov.c
View file @
a487378e
...
@@ -1350,10 +1350,13 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
...
@@ -1350,10 +1350,13 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
st
->
codec
->
frame_size
=
sc
->
samples_per_frame
;
st
->
codec
->
frame_size
=
sc
->
samples_per_frame
;
st
->
codec
->
channels
=
1
;
/* really needed */
st
->
codec
->
channels
=
1
;
/* really needed */
/* force sample rate for amr, stsd in 3gp does not store sample rate */
/* force sample rate for amr, stsd in 3gp does not store sample rate */
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AMR_NB
)
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AMR_NB
)
{
st
->
codec
->
sample_rate
=
8000
;
st
->
codec
->
sample_rate
=
8000
;
else
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AMR_WB
)
st
->
codec
->
frame_size
=
160
;
}
else
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AMR_WB
)
{
st
->
codec
->
sample_rate
=
16000
;
st
->
codec
->
sample_rate
=
16000
;
st
->
codec
->
frame_size
=
320
;
}
break
;
break
;
case
CODEC_ID_MP2
:
case
CODEC_ID_MP2
:
case
CODEC_ID_MP3
:
case
CODEC_ID_MP3
:
...
...
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