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
e3c43feb
Commit
e3c43feb
authored
Jun 14, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* We should be compatible with older versions of faad again
parent
c2275db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
modules/codec/faad/decoder.c
modules/codec/faad/decoder.c
+15
-2
No files found.
modules/codec/faad/decoder.c
View file @
e3c43feb
...
...
@@ -2,7 +2,7 @@
* decoder.c: AAC decoder using libfaad2
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: decoder.c,v 1.2
3 2003/05/09 19:53:51 fenrir
Exp $
* $Id: decoder.c,v 1.2
4 2003/06/14 22:14:16 hartman
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -245,12 +245,19 @@ static int InitThread( adec_thread_t * p_adec )
}
}
while
(
i_frame_size
<=
0
);
#ifdef HAVE_OLD_FAAD2
i_status
=
faacDecInit
(
p_adec
->
p_handle
,
p_adec
->
p_buffer
,
&
i_rate
,
&
i_nb_channels
);
#else
i_status
=
faacDecInit
(
p_adec
->
p_handle
,
p_adec
->
p_buffer
,
i_frame_size
,
&
i_rate
,
&
i_nb_channels
);
#endif
}
else
{
...
...
@@ -340,10 +347,16 @@ static void DecodeThread( adec_thread_t *p_adec )
}
while
(
i_frame_size
<=
0
);
/* **** decode this frame **** */
#ifdef HAVE_OLD_FAAD2
p_faad_buffer
=
faacDecDecode
(
p_adec
->
p_handle
,
&
faad_frame
,
p_adec
->
p_buffer
);
#else
p_faad_buffer
=
faacDecDecode
(
p_adec
->
p_handle
,
&
faad_frame
,
p_adec
->
p_buffer
,
i_frame_size
);
#endif
/* **** some sanity checks to see if we have samples to out **** */
if
(
faad_frame
.
error
>
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