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
19cde667
Commit
19cde667
authored
May 14, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* aac: use extention based detection.
parent
bbd578e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
16 deletions
+25
-16
modules/demux/aac/demux.c
modules/demux/aac/demux.c
+25
-16
No files found.
modules/demux/aac/demux.c
View file @
19cde667
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* demux.c : Raw aac Stream input module for vlc
* demux.c : Raw aac Stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: demux.c,v 1.
8 2003/05/05 22:23:34 gbazin
Exp $
* $Id: demux.c,v 1.
9 2003/05/14 14:58:35 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -44,7 +44,7 @@ static void Deactivate ( vlc_object_t * );
...
@@ -44,7 +44,7 @@ static void Deactivate ( vlc_object_t * );
*****************************************************************************/
*****************************************************************************/
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"AAC stream demuxer"
)
);
set_description
(
_
(
"AAC stream demuxer"
)
);
set_capability
(
"demux"
,
0
);
set_capability
(
"demux"
,
1
0
);
set_callbacks
(
Activate
,
NULL
);
set_callbacks
(
Activate
,
NULL
);
add_shortcut
(
"aac"
);
add_shortcut
(
"aac"
);
vlc_module_end
();
vlc_module_end
();
...
@@ -371,14 +371,12 @@ static void ExtractConfiguration( demux_sys_t *p_aac )
...
@@ -371,14 +371,12 @@ static void ExtractConfiguration( demux_sys_t *p_aac )
*/
*/
}
}
#if 0
/****************************************************************************
/****************************************************************************
* CheckPS : check if this stream could be some ps,
* CheckPS : check if this stream could be some ps,
* yes it's ugly ... but another idea ?
* yes it's ugly ... but another idea ?
*
* XXX it seems that aac stream always match ...
* XXX it seems that aac stream always match ...
*
****************************************************************************/
****************************************************************************/
static int CheckPS( input_thread_t *p_input )
static int CheckPS( input_thread_t *p_input )
{
{
uint8_t *p_peek;
uint8_t *p_peek;
...
@@ -396,6 +394,7 @@ static int CheckPS( input_thread_t *p_input )
...
@@ -396,6 +394,7 @@ static int CheckPS( input_thread_t *p_input )
}
}
return( 0 );
return( 0 );
}
}
#endif
/*****************************************************************************
/*****************************************************************************
* Activate: initializes AAC demux structures
* Activate: initializes AAC demux structures
...
@@ -408,7 +407,26 @@ static int Activate( vlc_object_t * p_this )
...
@@ -408,7 +407,26 @@ static int Activate( vlc_object_t * p_this )
module_t
*
p_id3
;
module_t
*
p_id3
;
int
i_skip
;
int
i_skip
;
int
b_forced
;
int
b_forced
=
VLC_FALSE
;
if
(
*
p_input
->
psz_demux
!=
NULL
&&
!
strncmp
(
p_input
->
psz_demux
,
"aac"
,
3
)
)
{
b_force
=
VLC_TRUE
;
}
else
if
(
p_input
->
psz_name
)
{
int
i_len
=
strlen
(
p_input
->
psz_name
);
if
(
i_len
>
4
&&
!
strcasecmp
(
&
p_input
->
psz_name
[
i_len
-
4
],
".aac"
)
)
{
b_force
=
VLC_TRUE
;
}
}
if
(
!
b_forced
)
{
return
-
1
;
}
/* Set the demux function */
/* Set the demux function */
p_input
->
pf_demux
=
Demux
;
p_input
->
pf_demux
=
Demux
;
...
@@ -420,15 +438,6 @@ static int Activate( vlc_object_t * p_this )
...
@@ -420,15 +438,6 @@ static int Activate( vlc_object_t * p_this )
p_input
->
i_bufsize
=
INPUT_DEFAULT_BUFSIZE
;
p_input
->
i_bufsize
=
INPUT_DEFAULT_BUFSIZE
;
}
}
b_forced
=
(
(
*
p_input
->
psz_demux
)
&&
(
!
strncmp
(
p_input
->
psz_demux
,
"aac"
,
10
)
)
)
?
1
:
0
;
/* check if it can be a ps stream */
if
(
!
b_forced
&&
CheckPS
(
p_input
)
)
{
return
(
-
1
);
}
/* skip possible id3 header */
/* skip possible id3 header */
p_id3
=
module_Need
(
p_input
,
"id3"
,
NULL
);
p_id3
=
module_Need
(
p_input
,
"id3"
,
NULL
);
if
(
p_id3
)
{
if
(
p_id3
)
{
...
...
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