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
eb81cf86
Commit
eb81cf86
authored
Mar 24, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: set audio service type for AC-3 from bitstream mode in the 'dac3' atom.
parent
be187388
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mov.c
libavformat/mov.c
+5
-1
No files found.
libavformat/mov.c
View file @
eb81cf86
...
@@ -492,16 +492,20 @@ static int mov_read_esds(MOVContext *c, AVIOContext *pb, MOVAtom atom)
...
@@ -492,16 +492,20 @@ static int mov_read_esds(MOVContext *c, AVIOContext *pb, MOVAtom atom)
static
int
mov_read_dac3
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
static
int
mov_read_dac3
(
MOVContext
*
c
,
AVIOContext
*
pb
,
MOVAtom
atom
)
{
{
AVStream
*
st
;
AVStream
*
st
;
int
ac3info
,
acmod
,
lfeon
;
int
ac3info
,
acmod
,
lfeon
,
bsmod
;
if
(
c
->
fc
->
nb_streams
<
1
)
if
(
c
->
fc
->
nb_streams
<
1
)
return
0
;
return
0
;
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
ac3info
=
avio_rb24
(
pb
);
ac3info
=
avio_rb24
(
pb
);
bsmod
=
(
ac3info
>>
14
)
&
0x7
;
acmod
=
(
ac3info
>>
11
)
&
0x7
;
acmod
=
(
ac3info
>>
11
)
&
0x7
;
lfeon
=
(
ac3info
>>
10
)
&
0x1
;
lfeon
=
(
ac3info
>>
10
)
&
0x1
;
st
->
codec
->
channels
=
((
int
[]){
2
,
1
,
2
,
3
,
3
,
4
,
4
,
5
})[
acmod
]
+
lfeon
;
st
->
codec
->
channels
=
((
int
[]){
2
,
1
,
2
,
3
,
3
,
4
,
4
,
5
})[
acmod
]
+
lfeon
;
st
->
codec
->
audio_service_type
=
bsmod
;
if
(
st
->
codec
->
channels
>
1
&&
bsmod
==
0x7
)
st
->
codec
->
audio_service_type
=
AV_AUDIO_SERVICE_TYPE_KARAOKE
;
return
0
;
return
0
;
}
}
...
...
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