Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4a8900b3
Commit
4a8900b3
authored
Aug 24, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backwards compatibilty with older faad2 lib
parent
e9a2d322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/codec/faad/decoder.c
modules/codec/faad/decoder.c
+8
-3
No files found.
modules/codec/faad/decoder.c
View file @
4a8900b3
...
@@ -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.2
7 2003/08/23 16:15:47 fenrir
Exp $
* $Id: decoder.c,v 1.2
8 2003/08/24 00:34:13 hartman
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -393,8 +393,11 @@ static void DecodeThread( adec_thread_t *p_adec )
...
@@ -393,8 +393,11 @@ 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_original_channels
!=
pi_channels_maps
[
faad_frame
.
channels
]
)
||
(
p_adec
->
output_format
.
i_original_channels
!=
pi_channels_maps
[
faad_frame
.
channels
]
)
(
p_adec
->
output_format
.
i_rate
!=
faad_frame
.
samplerate
)
)
#ifndef HAVE_OLD_FAAD2
||
(
p_adec
->
output_format
.
i_rate
!=
faad_frame
.
samplerate
)
#endif
)
{
{
if
(
p_adec
->
p_aout_input
)
if
(
p_adec
->
p_aout_input
)
{
{
...
@@ -406,7 +409,9 @@ static void DecodeThread( adec_thread_t *p_adec )
...
@@ -406,7 +409,9 @@ static void DecodeThread( adec_thread_t *p_adec )
p_adec
->
output_format
.
i_physical_channels
=
p_adec
->
output_format
.
i_physical_channels
=
p_adec
->
output_format
.
i_original_channels
=
p_adec
->
output_format
.
i_original_channels
=
pi_channels_maps
[
faad_frame
.
channels
];
pi_channels_maps
[
faad_frame
.
channels
];
#ifndef HAVE_OLD_FAAD2
p_adec
->
output_format
.
i_rate
=
faad_frame
.
samplerate
;
p_adec
->
output_format
.
i_rate
=
faad_frame
.
samplerate
;
#endif
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
,
...
...
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