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
4541bee2
Commit
4541bee2
authored
Mar 29, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: rename IOD to OD
iod being only for initial object
parent
cd081123
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
133 deletions
+133
-133
modules/demux/mpeg4_iod.c
modules/demux/mpeg4_iod.c
+122
-122
modules/demux/mpeg4_iod.h
modules/demux/mpeg4_iod.h
+5
-5
modules/demux/ts.c
modules/demux/ts.c
+6
-6
No files found.
modules/demux/mpeg4_iod.c
View file @
4541bee2
This diff is collapsed.
Click to expand it.
modules/demux/mpeg4_iod.h
View file @
4541bee2
...
@@ -85,21 +85,21 @@ typedef struct
...
@@ -85,21 +85,21 @@ typedef struct
typedef
struct
typedef
struct
{
{
/* IOD */
uint16_t
i_ID
;
char
*
psz_url
;
char
*
psz_url
;
es_mpeg4_descriptor_t
es_descr
[
ES_DESCRIPTOR_COUNT
];
es_mpeg4_descriptor_t
es_descr
[
ES_DESCRIPTOR_COUNT
];
}
i
od_descriptor_t
;
}
od_descriptor_t
;
typedef
struct
typedef
struct
{
{
int
i_version
;
int
i_version
;
DECL_ARRAY
(
i
od_descriptor_t
*
)
objects
;
DECL_ARRAY
(
od_descriptor_t
*
)
objects
;
}
od_descriptors_t
;
}
od_descriptors_t
;
i
od_descriptor_t
*
IODNew
(
vlc_object_t
*
p_object
,
unsigned
i_data
,
const
uint8_t
*
p_data
);
od_descriptor_t
*
IODNew
(
vlc_object_t
*
p_object
,
unsigned
i_data
,
const
uint8_t
*
p_data
);
void
IODFree
(
iod_descriptor_t
*
p_i
od
);
void
ODFree
(
od_descriptor_t
*
p_
od
);
sl_header_data
DecodeSLHeader
(
unsigned
i_data
,
const
uint8_t
*
p_data
,
sl_header_data
DecodeSLHeader
(
unsigned
i_data
,
const
uint8_t
*
p_data
,
const
sl_config_descriptor_t
*
sl
);
const
sl_config_descriptor_t
*
sl
);
modules/demux/ts.c
View file @
4541bee2
...
@@ -209,8 +209,8 @@ typedef struct
...
@@ -209,8 +209,8 @@ typedef struct
int
i_number
;
int
i_number
;
int
i_pid_pcr
;
int
i_pid_pcr
;
/* IOD stuff (mpeg4) */
/* IOD stuff (mpeg4) */
i
od_descriptor_t
*
iod
;
od_descriptor_t
*
iod
;
i
od_descriptors_t
od
;
od_descriptors_t
od
;
DECL_ARRAY
(
ts_pid_t
*
)
e_streams
;
DECL_ARRAY
(
ts_pid_t
*
)
e_streams
;
...
@@ -3972,7 +3972,7 @@ static const es_mpeg4_descriptor_t * GetMPEG4DescByEsId( const ts_pmt_t *pmt, ui
...
@@ -3972,7 +3972,7 @@ static const es_mpeg4_descriptor_t * GetMPEG4DescByEsId( const ts_pmt_t *pmt, ui
}
}
for
(
int
i
=
0
;
i
<
pmt
->
od
.
objects
.
i_size
;
i
++
)
for
(
int
i
=
0
;
i
<
pmt
->
od
.
objects
.
i_size
;
i
++
)
{
{
const
i
od_descriptor_t
*
od
=
pmt
->
od
.
objects
.
p_elems
[
i
];
const
od_descriptor_t
*
od
=
pmt
->
od
.
objects
.
p_elems
[
i
];
for
(
int
j
=
0
;
j
<
ES_DESCRIPTOR_COUNT
;
j
++
)
for
(
int
j
=
0
;
j
<
ES_DESCRIPTOR_COUNT
;
j
++
)
{
{
const
es_mpeg4_descriptor_t
*
es_descr
=
&
od
->
es_descr
[
j
];
const
es_mpeg4_descriptor_t
*
es_descr
=
&
od
->
es_descr
[
j
];
...
@@ -4993,7 +4993,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
...
@@ -4993,7 +4993,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
if
(
p_pmt
->
iod
)
if
(
p_pmt
->
iod
)
{
{
I
ODFree
(
p_pmt
->
iod
);
ODFree
(
p_pmt
->
iod
);
p_pmt
->
iod
=
NULL
;
p_pmt
->
iod
=
NULL
;
}
}
...
@@ -5580,9 +5580,9 @@ static void ts_pmt_Del( demux_t *p_demux, ts_pmt_t *pmt )
...
@@ -5580,9 +5580,9 @@ static void ts_pmt_Del( demux_t *p_demux, ts_pmt_t *pmt )
PIDRelease
(
p_demux
,
pmt
->
e_streams
.
p_elems
[
i
]
);
PIDRelease
(
p_demux
,
pmt
->
e_streams
.
p_elems
[
i
]
);
ARRAY_RESET
(
pmt
->
e_streams
);
ARRAY_RESET
(
pmt
->
e_streams
);
if
(
pmt
->
iod
)
if
(
pmt
->
iod
)
I
ODFree
(
pmt
->
iod
);
ODFree
(
pmt
->
iod
);
for
(
int
i
=
0
;
i
<
pmt
->
od
.
objects
.
i_size
;
i
++
)
for
(
int
i
=
0
;
i
<
pmt
->
od
.
objects
.
i_size
;
i
++
)
I
ODFree
(
pmt
->
od
.
objects
.
p_elems
[
i
]
);
ODFree
(
pmt
->
od
.
objects
.
p_elems
[
i
]
);
ARRAY_RESET
(
pmt
->
od
.
objects
);
ARRAY_RESET
(
pmt
->
od
.
objects
);
if
(
pmt
->
i_number
>
-
1
)
if
(
pmt
->
i_number
>
-
1
)
es_out_Control
(
p_demux
->
out
,
ES_OUT_DEL_GROUP
,
pmt
->
i_number
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_DEL_GROUP
,
pmt
->
i_number
);
...
...
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