Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
24876369
Commit
24876369
authored
Jun 02, 2014
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: don't parse data if trun is missing (cid #1219918)
parent
653e43c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+9
-9
No files found.
modules/demux/mp4/mp4.c
View file @
24876369
...
...
@@ -5318,18 +5318,18 @@ static int LeafParseMDATwithMOOF( demux_t *p_demux, MP4_Box_t *p_moof )
}
}
}
const
MP4_Box_data_trun_t
*
p_trun_data
=
p_track
->
context
.
BOXDATA
(
p_trun
);
const
MP4_Box_data_trun_t
*
p_trun_data
=
p_track
->
context
.
BOXDATA
(
p_trun
);
/* NOW PARSE TRUN WITH MDAT */
int
i_ret
=
LeafParseTRUN
(
p_demux
,
p_track
,
i_trun_sample_default_duration
,
i_trun_sample_default_size
,
p_trun_data
,
&
p_sys
->
context
.
i_mdatbytesleft
);
if
(
i_ret
!=
VLC_SUCCESS
)
goto
end
;
/* NOW PARSE TRUN WITH MDAT */
int
i_ret
=
LeafParseTRUN
(
p_demux
,
p_track
,
i_trun_sample_default_duration
,
i_trun_sample_default_size
,
p_trun_data
,
&
p_sys
->
context
.
i_mdatbytesleft
);
if
(
i_ret
!=
VLC_SUCCESS
)
goto
end
;
p_track
->
context
.
p_trun
=
p_track
->
context
.
p_trun
->
p_next
;
}
p_track
->
context
.
p_trun
=
p_track
->
context
.
p_trun
->
p_next
;
if
(
p_sys
->
context
.
i_mdatbytesleft
==
0
)
p_sys
->
context
.
i_current_box_type
=
0
;
return
VLC_SUCCESS
;
...
...
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