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
9240f975
Commit
9240f975
authored
May 31, 2012
by
Frédéric Yhuel
Committed by
Jean-Baptiste Kempf
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmp4: 'trun' parsing: minor fixes
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a50d7e47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+3
-2
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+1
-1
No files found.
modules/demux/mp4/libmp4.c
View file @
9240f975
...
@@ -650,7 +650,7 @@ static int MP4_ReadBox_trun( stream_t *p_stream, MP4_Box_t *p_box )
...
@@ -650,7 +650,7 @@ static int MP4_ReadBox_trun( stream_t *p_stream, MP4_Box_t *p_box )
}
}
#ifdef MP4_VERBOSE
#ifdef MP4_VERBOSE
msg_Dbg
(
p_stream
,
"read box:
\"
trun
\"
version %
d flags 0x%x sample count %d
"
,
msg_Dbg
(
p_stream
,
"read box:
\"
trun
\"
version %
u flags 0x%x sample count %u
"
,
p_box
->
data
.
p_trun
->
i_version
,
p_box
->
data
.
p_trun
->
i_version
,
p_box
->
data
.
p_trun
->
i_flags
,
p_box
->
data
.
p_trun
->
i_flags
,
p_box
->
data
.
p_trun
->
i_sample_count
);
p_box
->
data
.
p_trun
->
i_sample_count
);
...
@@ -658,7 +658,8 @@ static int MP4_ReadBox_trun( stream_t *p_stream, MP4_Box_t *p_box )
...
@@ -658,7 +658,8 @@ static int MP4_ReadBox_trun( stream_t *p_stream, MP4_Box_t *p_box )
for
(
unsigned
int
i
=
0
;
i
<
p_box
->
data
.
p_trun
->
i_sample_count
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
p_box
->
data
.
p_trun
->
i_sample_count
;
i
++
)
{
{
MP4_descriptor_trun_sample_t
*
p_sample
=
&
p_box
->
data
.
p_trun
->
p_samples
[
i
];
MP4_descriptor_trun_sample_t
*
p_sample
=
&
p_box
->
data
.
p_trun
->
p_samples
[
i
];
msg_Dbg
(
p_stream
,
"read box:
\"
trun
\"
sample %4.4d flags 0x%x duration %d size %d composition time offset %d"
,
msg_Dbg
(
p_stream
,
"read box:
\"
trun
\"
sample %4.4u flags 0x%x "
\
"duration %"
PRIu32
" size %"
PRIu32
" composition time offset %"
PRIu32
,
i
,
p_sample
->
i_flags
,
p_sample
->
i_duration
,
i
,
p_sample
->
i_flags
,
p_sample
->
i_duration
,
p_sample
->
i_size
,
p_sample
->
i_composition_time_offset
);
p_sample
->
i_size
,
p_sample
->
i_composition_time_offset
);
}
}
...
...
modules/demux/mp4/libmp4.h
View file @
9240f975
...
@@ -935,7 +935,7 @@ typedef struct MP4_Box_data_trun_s
...
@@ -935,7 +935,7 @@ typedef struct MP4_Box_data_trun_s
uint32_t
i_sample_count
;
uint32_t
i_sample_count
;
/* optional fields */
/* optional fields */
u
int32_t
i_data_offset
;
int32_t
i_data_offset
;
uint32_t
i_first_sample_flags
;
uint32_t
i_first_sample_flags
;
MP4_descriptor_trun_sample_t
*
p_samples
;
MP4_descriptor_trun_sample_t
*
p_samples
;
...
...
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