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
c99c90d1
Commit
c99c90d1
authored
Mar 26, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: rename union data pointer.
Avoid naming confusion, because data is an atom itself.
parent
b8f8588e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+4
-4
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+2
-2
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+1
-1
No files found.
modules/demux/mp4/libmp4.c
View file @
c99c90d1
...
...
@@ -90,7 +90,7 @@ int MP4_ReadBoxCommon( stream_t *p_stream, MP4_Box_t *p_box )
}
p_box
->
i_pos
=
stream_Tell
(
p_stream
);
p_box
->
data
.
p_
data
=
NULL
;
p_box
->
data
.
p_
payload
=
NULL
;
p_box
->
p_father
=
NULL
;
p_box
->
p_first
=
NULL
;
p_box
->
p_last
=
NULL
;
...
...
@@ -3467,7 +3467,7 @@ void MP4_BoxFree( stream_t *s, MP4_Box_t *p_box )
}
/* Now search function to call */
if
(
p_box
->
data
.
p_
data
)
if
(
p_box
->
data
.
p_
payload
)
{
for
(
i_index
=
0
;
;
i_index
++
)
{
...
...
@@ -3493,7 +3493,7 @@ void MP4_BoxFree( stream_t *s, MP4_Box_t *p_box )
{
MP4_Box_Function
[
i_index
].
MP4_FreeBox_function
(
p_box
);
}
free
(
p_box
->
data
.
p_
data
);
free
(
p_box
->
data
.
p_
payload
);
}
free
(
p_box
);
}
...
...
@@ -3591,7 +3591,7 @@ MP4_Box_t *MP4_BoxGetRoot( stream_t *s )
p_root
->
i_size
=
0
;
CreateUUID
(
&
p_root
->
i_uuid
,
p_root
->
i_type
);
p_root
->
data
.
p_
data
=
NULL
;
p_root
->
data
.
p_
payload
=
NULL
;
p_root
->
p_father
=
NULL
;
p_root
->
p_first
=
NULL
;
p_root
->
p_last
=
NULL
;
...
...
modules/demux/mp4/libmp4.h
View file @
c99c90d1
...
...
@@ -1250,7 +1250,7 @@ typedef union MP4_Box_data_s
MP4_Box_data_tfxd_t
*
p_tfxd
;
MP4_Box_data_hvcC_t
*
p_hvcC
;
void
*
p_
data
;
/* for unknow type */
void
*
p_
payload
;
/* for unknow type */
}
MP4_Box_data_t
;
...
...
@@ -1431,7 +1431,7 @@ static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
} \
p_peek += mp4_box_headersize( p_box ); \
i_read -= mp4_box_headersize( p_box ); \
if( !( p_box->data.p_
data
= calloc( 1, sizeof( MP4_Box_data_TYPE_t ) ) ) ) \
if( !( p_box->data.p_
payload
= calloc( 1, sizeof( MP4_Box_data_TYPE_t ) ) ) ) \
{ \
free( p_buff ); \
return( 0 ); \
...
...
modules/demux/mp4/mp4.c
View file @
c99c90d1
...
...
@@ -1656,7 +1656,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
i_sample_description_index
-
1
);
if
(
!
p_sample
||
(
!
p_sample
->
data
.
p_
data
&&
p_track
->
fmt
.
i_cat
!=
SPU_ES
)
)
(
!
p_sample
->
data
.
p_
payload
&&
p_track
->
fmt
.
i_cat
!=
SPU_ES
)
)
{
msg_Warn
(
p_demux
,
"cannot find SampleEntry (track[Id 0x%x])"
,
p_track
->
i_track_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