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
60845ce1
Commit
60845ce1
authored
May 03, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
76264186
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
34 deletions
+9
-34
modules/packetizer/a52.c
modules/packetizer/a52.c
+5
-32
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4audio.c
+2
-1
modules/packetizer/mpeg4video.c
modules/packetizer/mpeg4video.c
+2
-1
No files found.
modules/packetizer/a52.c
View file @
60845ce1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* a52.c
* a52.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: a52.c,v 1.
4 2003/04/13 20:00:2
1 fenrir Exp $
* $Id: a52.c,v 1.
5 2003/05/03 02:09:4
1 fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
* Eric Petit <titer@videolan.org>
...
@@ -133,8 +133,6 @@ static int Run( decoder_fifo_t *p_fifo )
...
@@ -133,8 +133,6 @@ static int Run( decoder_fifo_t *p_fifo )
EndThread
(
p_pack
);
EndThread
(
p_pack
);
FREE
(
p_pack
);
if
(
b_error
)
if
(
b_error
)
{
{
return
(
-
1
);
return
(
-
1
);
...
@@ -306,6 +304,7 @@ static void EndThread ( packetizer_t *p_pack)
...
@@ -306,6 +304,7 @@ static void EndThread ( packetizer_t *p_pack)
{
{
sout_InputDelete
(
p_pack
->
p_sout_input
);
sout_InputDelete
(
p_pack
->
p_sout_input
);
}
}
free
(
p_pack
);
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -325,6 +324,7 @@ static int SyncInfo( const byte_t * p_buf, int * pi_channels,
...
@@ -325,6 +324,7 @@ static int SyncInfo( const byte_t * p_buf, int * pi_channels,
512
,
576
,
640
};
512
,
576
,
640
};
static
const
uint8_t
lfeon
[
8
]
=
{
0x10
,
0x10
,
0x04
,
0x04
,
static
const
uint8_t
lfeon
[
8
]
=
{
0x10
,
0x10
,
0x04
,
0x04
,
0x04
,
0x01
,
0x04
,
0x01
};
0x04
,
0x01
,
0x04
,
0x01
};
static
const
int
acmod_to_channels
[
8
]
=
{
2
,
1
,
2
,
3
,
3
,
4
,
4
,
5
};
int
frmsizecod
;
int
frmsizecod
;
int
bitrate
;
int
bitrate
;
int
half
;
int
half
;
...
@@ -346,36 +346,9 @@ static int SyncInfo( const byte_t * p_buf, int * pi_channels,
...
@@ -346,36 +346,9 @@ static int SyncInfo( const byte_t * p_buf, int * pi_channels,
| AOUT_CHAN_DOLBYSTEREO;*/
| AOUT_CHAN_DOLBYSTEREO;*/
*
pi_channels
=
2
;
/* FIXME ??? */
*
pi_channels
=
2
;
/* FIXME ??? */
}
}
else
switch
(
acmod
)
else
{
{
case
0x0
:
*
pi_channels
=
acmod_to_channels
[
acmod
&
0x07
];
/* Dual-mono = stereo + dual-mono */
// *pi_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT
// | AOUT_CHAN_DUALMONO;
*
pi_channels
=
2
;
/* FIXME ??? */
break
;
case
0x1
:
/* Mono */
*
pi_channels
=
1
;
break
;
case
0x2
:
/* Stereo */
*
pi_channels
=
2
;
break
;
case
0x3
:
/* 3F */
case
0x4
:
/* 2F1R */
*
pi_channels
=
3
;
break
;
case
0x5
:
/* 3F1R */
case
0x6
:
/* 2F2R */
*
pi_channels
=
4
;
break
;
case
0x7
:
/* 3F2R */
*
pi_channels
=
5
;
break
;
default:
return
0
;
}
}
if
(
p_buf
[
6
]
&
lfeon
[
acmod
]
)
*
pi_channels
+=
1
;
//|= AOUT_CHAN_LFEA;
if
(
p_buf
[
6
]
&
lfeon
[
acmod
]
)
*
pi_channels
+=
1
;
//|= AOUT_CHAN_LFEA;
...
...
modules/packetizer/mpeg4audio.c
View file @
60845ce1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg4audio.c
* mpeg4audio.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mpeg4audio.c,v 1.
5 2003/04/13 20:00:2
1 fenrir Exp $
* $Id: mpeg4audio.c,v 1.
6 2003/05/03 02:09:4
1 fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -361,5 +361,6 @@ static void EndThread ( packetizer_thread_t *p_pack)
...
@@ -361,5 +361,6 @@ static void EndThread ( packetizer_thread_t *p_pack)
{
{
free
(
p_pack
->
p_wf
);
free
(
p_pack
->
p_wf
);
}
}
free
(
p_pack
);
}
}
modules/packetizer/mpeg4video.c
View file @
60845ce1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg4video.c
* mpeg4video.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mpeg4video.c,v 1.1
1 2003/04/24 20:24:44
fenrir Exp $
* $Id: mpeg4video.c,v 1.1
2 2003/05/03 02:09:41
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
* Eric Petit <titer@videolan.org>
...
@@ -451,6 +451,7 @@ static void EndThread ( packetizer_thread_t *p_pack)
...
@@ -451,6 +451,7 @@ static void EndThread ( packetizer_thread_t *p_pack)
{
{
sout_InputDelete
(
p_pack
->
p_sout_input
);
sout_InputDelete
(
p_pack
->
p_sout_input
);
}
}
free
(
p_pack
);
}
}
static
void
input_ShowPES
(
decoder_fifo_t
*
p_fifo
,
pes_packet_t
**
pp_pes
)
static
void
input_ShowPES
(
decoder_fifo_t
*
p_fifo
,
pes_packet_t
**
pp_pes
)
...
...
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