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
db62d898
Commit
db62d898
authored
Apr 23, 2011
by
Peter Ross
Committed by
Michael Niedermayer
Apr 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EA cdata demuxer: support 6 channel files
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c8a5e8a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
eacdata.c
libavformat/eacdata.c
+2
-1
No files found.
libavformat/eacdata.c
View file @
db62d898
...
...
@@ -39,7 +39,7 @@ static int cdata_probe(AVProbeData *p)
{
const
uint8_t
*
b
=
p
->
buf
;
if
(
b
[
0
]
==
0x04
&&
(
b
[
1
]
==
0x00
||
b
[
1
]
==
0x04
||
b
[
1
]
==
0x0C
))
if
(
b
[
0
]
==
0x04
&&
(
b
[
1
]
==
0x00
||
b
[
1
]
==
0x04
||
b
[
1
]
==
0x0C
||
b
[
1
]
==
0x14
))
return
AVPROBE_SCORE_MAX
/
8
;
return
0
;
}
...
...
@@ -56,6 +56,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
case
0x0400
:
cdata
->
channels
=
1
;
break
;
case
0x0404
:
cdata
->
channels
=
2
;
break
;
case
0x040C
:
cdata
->
channels
=
4
;
break
;
case
0x0414
:
cdata
->
channels
=
6
;
break
;
default:
av_log
(
s
,
AV_LOG_INFO
,
"unknown header 0x%04x
\n
"
,
header
);
return
-
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