Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b209b71e
Commit
b209b71e
authored
Mar 27, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: set data type on stream handling
parent
d1d7c0d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
modules/demux/ts.c
modules/demux/ts.c
+8
-15
No files found.
modules/demux/ts.c
View file @
b209b71e
...
@@ -432,7 +432,7 @@ struct demux_sys_t
...
@@ -432,7 +432,7 @@ struct demux_sys_t
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
void
PIDFillFormat
(
es_format_t
*
fmt
,
int
i_stream_type
);
static
void
PIDFillFormat
(
es_format_t
*
fmt
,
int
i_stream_type
,
ts_es_data_type_t
*
);
static
bool
PIDSetup
(
demux_t
*
p_demux
,
ts_pid_type_t
i_type
,
ts_pid_t
*
pid
,
ts_pid_t
*
p_parent
);
static
bool
PIDSetup
(
demux_t
*
p_demux
,
ts_pid_type_t
i_type
,
ts_pid_t
*
pid
,
ts_pid_t
*
p_parent
);
static
void
PIDRelease
(
demux_t
*
p_demux
,
ts_pid_t
*
pid
);
static
void
PIDRelease
(
demux_t
*
p_demux
,
ts_pid_t
*
pid
);
...
@@ -1765,7 +1765,7 @@ static int UserPmt( demux_t *p_demux, const char *psz_fmt )
...
@@ -1765,7 +1765,7 @@ static int UserPmt( demux_t *p_demux, const char *psz_fmt )
else
else
{
{
const
int
i_stream_type
=
strtol
(
psz_opt
,
NULL
,
0
);
const
int
i_stream_type
=
strtol
(
psz_opt
,
NULL
,
0
);
PIDFillFormat
(
fmt
,
i_stream_type
);
PIDFillFormat
(
fmt
,
i_stream_type
,
&
pid
->
u
.
p_pes
->
data_type
);
}
}
fmt
->
i_group
=
i_number
;
fmt
->
i_group
=
i_number
;
...
@@ -3281,7 +3281,7 @@ static bool GatherData( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
...
@@ -3281,7 +3281,7 @@ static bool GatherData( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
return
i_ret
;
return
i_ret
;
}
}
static
void
PIDFillFormat
(
es_format_t
*
fmt
,
int
i_stream_type
)
static
void
PIDFillFormat
(
es_format_t
*
fmt
,
int
i_stream_type
,
ts_es_data_type_t
*
p_datatype
)
{
{
switch
(
i_stream_type
)
switch
(
i_stream_type
)
{
{
...
@@ -3318,6 +3318,7 @@ static void PIDFillFormat( es_format_t *fmt, int i_stream_type )
...
@@ -3318,6 +3318,7 @@ static void PIDFillFormat( es_format_t *fmt, int i_stream_type )
break
;
break
;
case
0x82
:
/* SCTE-27 (sub) */
case
0x82
:
/* SCTE-27 (sub) */
es_format_Init
(
fmt
,
SPU_ES
,
VLC_CODEC_SCTE_27
);
es_format_Init
(
fmt
,
SPU_ES
,
VLC_CODEC_SCTE_27
);
*
p_datatype
=
TS_ES_DATA_TABLE_SECTION
;
break
;
break
;
case
0x84
:
/* SDDS (audio) */
case
0x84
:
/* SDDS (audio) */
es_format_Init
(
fmt
,
AUDIO_ES
,
VLC_CODEC_SDDS
);
es_format_Init
(
fmt
,
AUDIO_ES
,
VLC_CODEC_SDDS
);
...
@@ -5192,7 +5193,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
...
@@ -5192,7 +5193,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
ARRAY_APPEND
(
p_pmt
->
e_streams
,
pespid
);
ARRAY_APPEND
(
p_pmt
->
e_streams
,
pespid
);
PIDFillFormat
(
&
p_pes
->
es
.
fmt
,
p_dvbpsies
->
i_type
);
PIDFillFormat
(
&
p_pes
->
es
.
fmt
,
p_dvbpsies
->
i_type
,
&
p_pes
->
data_type
);
pespid
->
i_flags
|=
SEEN
(
PID
(
p_sys
,
p_dvbpsies
->
i_pid
));
pespid
->
i_flags
|=
SEEN
(
PID
(
p_sys
,
p_dvbpsies
->
i_pid
));
...
@@ -5222,11 +5223,13 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
...
@@ -5222,11 +5223,13 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
PMTSetupEs0x06
(
p_demux
,
p_pes
,
p_dvbpsies
);
PMTSetupEs0x06
(
p_demux
,
p_pes
,
p_dvbpsies
);
break
;
break
;
/* All other private or reserved types */
/* All other private or reserved types */
case
0x13
:
/* SL in sections */
p_pes
->
data_type
=
TS_ES_DATA_TABLE_SECTION
;
//ft
case
0x0f
:
case
0x0f
:
case
0x10
:
case
0x10
:
case
0x11
:
case
0x11
:
case
0x12
:
case
0x12
:
case
0x13
:
PMTSetupEsISO14496
(
p_demux
,
&
p_pes
->
es
,
p_pmt
,
p_dvbpsies
);
PMTSetupEsISO14496
(
p_demux
,
&
p_pes
->
es
,
p_pmt
,
p_dvbpsies
);
break
;
break
;
case
0x83
:
case
0x83
:
...
@@ -5254,16 +5257,6 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
...
@@ -5254,16 +5257,6 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
PMTParseEsIso639
(
p_demux
,
&
p_pes
->
es
,
p_dvbpsies
);
PMTParseEsIso639
(
p_demux
,
&
p_pes
->
es
,
p_dvbpsies
);
}
}
switch
(
p_pes
->
es
.
fmt
.
i_codec
)
{
case
VLC_CODEC_SCTE_27
:
p_pes
->
data_type
=
TS_ES_DATA_TABLE_SECTION
;
break
;
default:
//pid->es->data_type = TS_ES_DATA_PES;
break
;
}
/* Set Groups / ID */
/* Set Groups / ID */
p_pes
->
es
.
fmt
.
i_group
=
p_dvbpsipmt
->
i_program_number
;
p_pes
->
es
.
fmt
.
i_group
=
p_dvbpsipmt
->
i_program_number
;
if
(
p_sys
->
b_es_id_pid
)
if
(
p_sys
->
b_es_id_pid
)
...
...
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