Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
289d5a72
Commit
289d5a72
authored
Nov 23, 2011
by
Denis Charmet
Committed by
Jean-Baptiste Kempf
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevents a crash if KaxInfo cannot be found in KaxSegment
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
73160f1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/demux/mkv/demux.cpp
modules/demux/mkv/demux.cpp
+2
-2
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+1
-1
No files found.
modules/demux/mkv/demux.cpp
View file @
289d5a72
...
@@ -460,7 +460,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
...
@@ -460,7 +460,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
{
{
int
i_upper_lvl
=
0
;
int
i_upper_lvl
=
0
;
EbmlElement
*
p_l0
,
*
p_l1
,
*
p_l2
;
EbmlElement
*
p_l0
,
*
p_l1
,
*
p_l2
;
bool
b_keep_stream
=
false
,
b_keep_segment
;
bool
b_keep_stream
=
false
,
b_keep_segment
=
false
;
// verify the EBML Header
// verify the EBML Header
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
EbmlHead
),
0xFFFFFFFFL
);
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
EbmlHead
),
0xFFFFFFFFL
);
...
@@ -505,7 +505,6 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
...
@@ -505,7 +505,6 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
{
{
EbmlParser
*
ep
;
EbmlParser
*
ep
;
matroska_segment_c
*
p_segment1
=
new
matroska_segment_c
(
*
this
,
*
p_estream
);
matroska_segment_c
*
p_segment1
=
new
matroska_segment_c
(
*
this
,
*
p_estream
);
b_keep_segment
=
b_initial
;
ep
=
new
EbmlParser
(
p_estream
,
p_l0
,
&
demuxer
);
ep
=
new
EbmlParser
(
p_estream
,
p_l0
,
&
demuxer
);
p_segment1
->
ep
=
ep
;
p_segment1
->
ep
=
ep
;
...
@@ -517,6 +516,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
...
@@ -517,6 +516,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
{
{
// find the families of this segment
// find the families of this segment
KaxInfo
*
p_info
=
static_cast
<
KaxInfo
*>
(
p_l1
);
KaxInfo
*
p_info
=
static_cast
<
KaxInfo
*>
(
p_l1
);
b_keep_segment
=
b_initial
;
p_info
->
Read
(
*
p_estream
,
EBML_CLASS_CONTEXT
(
KaxInfo
),
i_upper_lvl
,
p_l2
,
true
);
p_info
->
Read
(
*
p_estream
,
EBML_CLASS_CONTEXT
(
KaxInfo
),
i_upper_lvl
,
p_l2
,
true
);
for
(
size_t
i
=
0
;
i
<
p_info
->
ListSize
();
i
++
)
for
(
size_t
i
=
0
;
i
<
p_info
->
ListSize
();
i
++
)
...
...
modules/demux/mkv/mkv.cpp
View file @
289d5a72
...
@@ -119,7 +119,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -119,7 +119,7 @@ static int Open( vlc_object_t * p_this )
p_stream
=
p_sys
->
AnalyseAllSegmentsFound
(
p_demux
,
p_io_stream
,
true
);
p_stream
=
p_sys
->
AnalyseAllSegmentsFound
(
p_demux
,
p_io_stream
,
true
);
if
(
p_stream
==
NULL
)
if
(
p_stream
==
NULL
)
{
{
msg_Err
(
p_demux
,
"cannot find KaxSegment"
);
msg_Err
(
p_demux
,
"cannot find KaxSegment
or missing mandatory KaxInfo
"
);
goto
error
;
goto
error
;
}
}
p_sys
->
streams
.
push_back
(
p_stream
);
p_sys
->
streams
.
push_back
(
p_stream
);
...
...
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