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
747f24a1
Commit
747f24a1
authored
Aug 14, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: added support for a52 in PES private stream, but untested.
parent
aefcff5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
8 deletions
+40
-8
modules/demux/mpeg/system.h
modules/demux/mpeg/system.h
+4
-4
modules/demux/mpeg/ts.c
modules/demux/mpeg/ts.c
+36
-4
No files found.
modules/demux/mpeg/system.h
View file @
747f24a1
...
...
@@ -2,7 +2,7 @@
* system.h: MPEG demultiplexing.
*****************************************************************************
* Copyright (C) 1999-2002 VideoLAN
* $Id: system.h,v 1.
8 2003/07/13 12:35:13 massiot
Exp $
* $Id: system.h,v 1.
9 2003/08/14 23:32:51 fenrir
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -46,9 +46,9 @@
#define MPEG2_VIDEO_ES 0x02
#define MPEG1_AUDIO_ES 0x03
#define MPEG2_AUDIO_ES 0x04
/* This one is "private PES". It may carry teletext
and DVB, and we ought
*
to check for the presence of a descriptor, but we don't.
*/
#define PES
DVB_AUDIO_ES
0x06
/* This one is "private PES". It may carry teletext
, DVD subtitles, A52
*
We have to check for the presence of a descriptor to have the codec
*/
#define PES
_PRIVATE_ES
0x06
#define MPEG4_VIDEO_ES 0x10
#define MPEG4_AUDIO_ES 0x11
...
...
modules/demux/mpeg/ts.c
View file @
747f24a1
...
...
@@ -2,7 +2,7 @@
* mpeg_ts.c : Transport Stream input module for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: ts.c,v 1.3
3 2003/08/13 14:06:37
fenrir Exp $
* $Id: ts.c,v 1.3
4 2003/08/14 23:32:51
fenrir Exp $
*
* Authors: Henri Fallon <henri@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
...
...
@@ -1388,10 +1388,16 @@ static void TS_DVBPSI_HandlePMT( input_thread_t * p_input,
i_stream_id
=
0xfa
;
break
;
case
MSCODEC_VIDEO_ES
:
i_fourcc
=
VLC_FOURCC
(
0
,
0
,
0
,
0
);
/
/ fixed later
i_fourcc
=
VLC_FOURCC
(
0
,
0
,
0
,
0
);
/
* fixed later */
i_cat
=
VIDEO_ES
;
i_stream_id
=
0xa0
;
break
;
case
PES_PRIVATE_ES
:
/* We need to check a descriptor to find the real codec */
i_fourcc
=
VLC_FOURCC
(
0
,
0
,
0
,
0
);
/* fixed later */
i_cat
=
UNKNOWN_ES
;
i_stream_id
=
0xbd
;
break
;
default:
i_fourcc
=
0
;
i_cat
=
UNKNOWN_ES
;
...
...
@@ -1549,8 +1555,8 @@ static void TS_DVBPSI_HandlePMT( input_thread_t * p_input,
if
(
p_dr
&&
p_dr
->
i_length
>=
8
)
{
int
i_bih_size
;
/* i_fourcc = (p_dr->p_data[0] << 24)|(p_dr->p_data[1]<<16)|(p_dr->p_data[2]<<8)|p_dr->p_data[3]; */
i_fourcc
=
VLC_FOURCC
(
p_dr
->
p_data
[
0
],
p_dr
->
p_data
[
1
],
p_dr
->
p_data
[
2
],
p_dr
->
p_data
[
3
]
);
i_fourcc
=
VLC_FOURCC
(
p_dr
->
p_data
[
0
],
p_dr
->
p_data
[
1
],
p_dr
->
p_data
[
2
],
p_dr
->
p_data
[
3
]
);
i_bih_size
=
(
p_dr
->
p_data
[
8
]
<<
8
)
|
p_dr
->
p_data
[
9
];
i_size
=
sizeof
(
BITMAPINFOHEADER
)
+
i_bih_size
;
...
...
@@ -1577,6 +1583,32 @@ static void TS_DVBPSI_HandlePMT( input_thread_t * p_input,
i_cat
=
UNKNOWN_ES
;
}
}
else
if
(
p_es
->
i_type
==
PES_PRIVATE_ES
)
{
dvbpsi_descriptor_t
*
p_dr
=
p_es
->
p_first_descriptor
;
/* We have to find a descriptor giving the right codec */
for
(
p_dr
=
p_es
->
p_first_descriptor
;
p_dr
;
p_dr
=
p_dr
->
p_next
)
{
if
(
p_dr
->
i_tag
==
0x6a
)
{
/* A52 */
i_fourcc
=
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
);
i_cat
=
AUDIO_ES
;
}
else
if
(
p_dr
->
i_tag
==
0x59
)
{
/* DVB subtitle */
i_fourcc
=
VLC_FOURCC
(
'd'
,
'v'
,
'b'
,
's'
);
i_cat
=
SPU_ES
;
}
}
if
(
i_fourcc
==
VLC_FOURCC
(
0
,
0
,
0
,
0
)
)
{
msg_Warn
(
p_input
,
"Unknown codec/type for Private PES stream"
);
}
}
if
(
i_cat
==
AUDIO_ES
||
i_cat
==
SPU_ES
)
{
...
...
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