Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
73d73c4c
Commit
73d73c4c
authored
Jun 06, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: add DESCRIPTOR_COUNT
parent
6310ab7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/demux/ts.c
modules/demux/ts.c
+4
-3
No files found.
modules/demux/ts.c
View file @
73d73c4c
...
@@ -196,12 +196,13 @@ typedef struct
...
@@ -196,12 +196,13 @@ typedef struct
}
es_mpeg4_descriptor_t
;
}
es_mpeg4_descriptor_t
;
#define ES_DESCRIPTOR_COUNT 255
typedef
struct
typedef
struct
{
{
/* IOD */
/* IOD */
char
*
psz_url
;
char
*
psz_url
;
es_mpeg4_descriptor_t
es_descr
[
255
];
es_mpeg4_descriptor_t
es_descr
[
ES_DESCRIPTOR_COUNT
];
}
iod_descriptor_t
;
}
iod_descriptor_t
;
...
@@ -2585,7 +2586,7 @@ static iod_descriptor_t *IODNew( int i_data, uint8_t *p_data )
...
@@ -2585,7 +2586,7 @@ static iod_descriptor_t *IODNew( int i_data, uint8_t *p_data )
int
i_length
=
0
;
int
i_length
=
0
;
int
i_data_sav
=
i_data
;
int
i_data_sav
=
i_data
;
uint8_t
*
p_data_sav
=
p_data
;
uint8_t
*
p_data_sav
=
p_data
;
for
(
int
i
=
0
;
i_data
>
0
&&
i
<
255
;
i
++
)
for
(
int
i
=
0
;
i_data
>
0
&&
i
<
ES_DESCRIPTOR_COUNT
;
i
++
)
{
{
es_mpeg4_descriptor_t
*
es_descr
=
&
p_iod
->
es_descr
[
i
];
es_mpeg4_descriptor_t
*
es_descr
=
&
p_iod
->
es_descr
[
i
];
...
@@ -3276,7 +3277,7 @@ static void PMTSetupEsISO14496( demux_t *p_demux, ts_pid_t *pid,
...
@@ -3276,7 +3277,7 @@ static void PMTSetupEsISO14496( demux_t *p_demux, ts_pid_t *pid,
pid
->
es
->
p_mpeg4desc
=
NULL
;
pid
->
es
->
p_mpeg4desc
=
NULL
;
for
(
int
i
=
0
;
i
<
255
;
i
++
)
for
(
int
i
=
0
;
i
<
ES_DESCRIPTOR_COUNT
;
i
++
)
{
{
iod_descriptor_t
*
iod
=
prg
->
iod
;
iod_descriptor_t
*
iod
=
prg
->
iod
;
if
(
iod
->
es_descr
[
i
].
i_es_id
==
i_es_id
)
if
(
iod
->
es_descr
[
i
].
i_es_id
==
i_es_id
)
...
...
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