Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
86352fc8
Commit
86352fc8
authored
Feb 26, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix FLAC 7.1 support
Close #3348
parent
f74eff7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
modules/codec/flac.c
modules/codec/flac.c
+10
-4
modules/packetizer/flac.c
modules/packetizer/flac.c
+1
-1
No files found.
modules/codec/flac.c
View file @
86352fc8
...
...
@@ -64,7 +64,7 @@ struct decoder_sys_t
bool
b_stream_info
;
};
static
const
int
pi_channels_maps
[
7
]
=
static
const
int
pi_channels_maps
[
9
]
=
{
0
,
AOUT_CHAN_CENTER
,
...
...
@@ -75,7 +75,13 @@ static const int pi_channels_maps[7] =
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
,
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_LFE
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_LFE
,
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
,
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
|
AOUT_CHAN_LFE
};
/*****************************************************************************
...
...
@@ -334,8 +340,8 @@ DecoderWriteCallback( const FLAC__StreamDecoder *decoder,
{
0
,
1
,
3
,
4
,
2
},
{
0
,
1
,
4
,
5
,
2
,
3
},
{
0
,
1
,
6
,
2
,
3
,
4
,
5
},
/* 7.0 Unspecified by flac
*/
{
0
,
1
,
6
,
7
,
2
,
3
,
4
,
5
},
/* 7.1 Unspecified by flac
*/
{
0
,
1
,
6
,
4
,
5
,
2
,
3
},
/* 7.0 Unspecified by flac, but following SMPTE
*/
{
0
,
1
,
6
,
7
,
4
,
5
,
2
,
3
},
/* 7.1 Unspecified by flac, but following SMPTE
*/
};
VLC_UNUSED
(
decoder
);
...
...
modules/packetizer/flac.c
View file @
86352fc8
...
...
@@ -206,7 +206,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
!
p_sys
->
b_stream_info
)
ProcessHeader
(
p_dec
);
if
(
p_sys
->
stream_info
.
channels
>
6
)
if
(
p_sys
->
stream_info
.
channels
>
8
)
{
msg_Err
(
p_dec
,
"This stream uses too many audio channels"
);
return
NULL
;
...
...
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