Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a5b12f13
Commit
a5b12f13
authored
Nov 15, 2002
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faad: adapt to new changes in aout3 (at least it compiles)
parent
42c78694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/codec/faad/decoder.c
modules/codec/faad/decoder.c
+8
-4
No files found.
modules/codec/faad/decoder.c
View file @
a5b12f13
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* decoder.c: AAC decoder using libfaad2
* decoder.c: AAC decoder using libfaad2
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: decoder.c,v 1.1
2 2002/11/14 22:38:47 massiot
Exp $
* $Id: decoder.c,v 1.1
3 2002/11/15 01:17:08 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -296,7 +296,9 @@ static int InitThread( adec_thread_t * p_adec )
...
@@ -296,7 +296,9 @@ static int InitThread( adec_thread_t * p_adec )
/* Initialize the thread properties */
/* Initialize the thread properties */
p_adec
->
output_format
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
);
p_adec
->
output_format
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
);
p_adec
->
output_format
.
i_rate
=
i_rate
;
p_adec
->
output_format
.
i_rate
=
i_rate
;
p_adec
->
output_format
.
i_channels
=
pi_channels_maps
[
i_nb_channels
];
p_adec
->
output_format
.
i_physical_channels
=
p_adec
->
output_format
.
i_original_channels
=
pi_channels_maps
[
i_nb_channels
];
p_adec
->
p_aout
=
NULL
;
p_adec
->
p_aout
=
NULL
;
p_adec
->
p_aout_input
=
NULL
;
p_adec
->
p_aout_input
=
NULL
;
...
@@ -389,7 +391,7 @@ static void DecodeThread( adec_thread_t *p_adec )
...
@@ -389,7 +391,7 @@ static void DecodeThread( adec_thread_t *p_adec )
/* **** First check if we have a valid output **** */
/* **** First check if we have a valid output **** */
if
(
(
!
p_adec
->
p_aout_input
)
||
if
(
(
!
p_adec
->
p_aout_input
)
||
(
p_adec
->
output_format
.
i_channels
!=
(
p_adec
->
output_format
.
i_
original_
channels
!=
pi_channels_maps
[
faad_frame
.
channels
]
)
)
pi_channels_maps
[
faad_frame
.
channels
]
)
)
{
{
if
(
p_adec
->
p_aout_input
)
if
(
p_adec
->
p_aout_input
)
...
@@ -399,8 +401,10 @@ static void DecodeThread( adec_thread_t *p_adec )
...
@@ -399,8 +401,10 @@ static void DecodeThread( adec_thread_t *p_adec )
}
}
/* **** Create a new audio output **** */
/* **** Create a new audio output **** */
p_adec
->
output_format
.
i_channels
=
p_adec
->
output_format
.
i_physical_channels
=
p_adec
->
output_format
.
i_original_channels
=
pi_channels_maps
[
faad_frame
.
channels
];
pi_channels_maps
[
faad_frame
.
channels
];
aout_DateInit
(
&
p_adec
->
date
,
p_adec
->
output_format
.
i_rate
);
aout_DateInit
(
&
p_adec
->
date
,
p_adec
->
output_format
.
i_rate
);
p_adec
->
p_aout_input
=
aout_DecNew
(
p_adec
->
p_fifo
,
p_adec
->
p_aout_input
=
aout_DecNew
(
p_adec
->
p_fifo
,
&
p_adec
->
p_aout
,
&
p_adec
->
p_aout
,
...
...
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