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
5d6fac11
Commit
5d6fac11
authored
Feb 22, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support old qclp-in-mov files that do not store bytes_per_frame in the header.
Fixes ticket #2649.
parent
0aded6bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mov.c
libavformat/mov.c
+4
-0
No files found.
libavformat/mov.c
View file @
5d6fac11
...
...
@@ -1536,6 +1536,10 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
// force sample rate for qcelp when not stored in mov
if
(
st
->
codec
->
codec_tag
!=
MKTAG
(
'Q'
,
'c'
,
'l'
,
'p'
))
st
->
codec
->
sample_rate
=
8000
;
// FIXME: Why is the following needed for some files?
sc
->
samples_per_frame
=
160
;
if
(
!
sc
->
bytes_per_frame
)
sc
->
bytes_per_frame
=
35
;
break
;
case
AV_CODEC_ID_AMR_NB
:
st
->
codec
->
channels
=
1
;
...
...
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