Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c89097c0
Commit
c89097c0
authored
Sep 11, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: support segments with "unknown" size
parent
a802e8af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+13
-9
No files found.
modules/demux/mkv.cpp
View file @
c89097c0
...
...
@@ -1021,14 +1021,14 @@ public:
{
free
(
tracks
[
i_track
]
->
fmt
.
psz_description
);
}
/*
if( tracks[i_track]->psz_codec )
if
(
tracks
[
i_track
]
->
psz_codec
)
{
free
(
tracks
[
i_track
]
->
psz_codec
);
}
if
(
tracks
[
i_track
]
->
fmt
.
psz_language
)
{
free
(
tracks
[
i_track
]
->
fmt
.
psz_language
);
}
*/
}
delete
tracks
[
i_track
];
}
...
...
@@ -1928,7 +1928,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( EbmlStream *p_estream,
{
return
NULL
;
}
p_l0
->
SkipData
(
*
p_estream
,
EbmlHead
_Context
);
p_l0
->
SkipData
(
*
p_estream
,
KaxMatroska
_Context
);
delete
p_l0
;
// find all segments in this file
...
...
@@ -1967,7 +1967,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( EbmlStream *p_estream,
if
(
MKV_IS_ID
(
l
,
KaxSegmentUID
)
)
{
KaxSegmentUID
*
p_uid
=
static_cast
<
KaxSegmentUID
*>
(
l
);
b_keep_segment
=
b_initial
||
(
FindSegment
(
*
p_uid
)
==
NULL
);
b_keep_segment
=
(
FindSegment
(
*
p_uid
)
==
NULL
);
if
(
!
b_keep_segment
)
break
;
// this segment is already known
opened_segments
.
push_back
(
p_segment1
);
...
...
@@ -1999,10 +1999,14 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( EbmlStream *p_estream,
else
delete
p_segment1
;
}
p_l0
->
SkipData
(
*
p_estream
,
EbmlHead_Context
);
if
(
p_l0
->
IsFiniteSize
()
)
{
p_l0
->
SkipData
(
*
p_estream
,
KaxMatroska_Context
);
p_l0
=
p_estream
->
FindNextID
(
KaxSegment
::
ClassInfos
,
0xFFFFFFFFL
);
}
else
p_l0
=
p_l0
->
SkipData
(
*
p_estream
,
KaxSegment_Context
);
}
if
(
!
b_keep_stream
)
{
...
...
@@ -5587,8 +5591,8 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
if
(
i_size
!=
8
)
return
false
;
virtual_segment_c
*
p_segment
;
chapter_item_c
*
p_chapter
;
virtual_segment_c
*
p_segment
=
NULL
;
chapter_item_c
*
p_chapter
=
NULL
;
bool
f_result
=
false
;
uint16
i_command
=
(
p_command
[
0
]
<<
8
)
+
p_command
[
1
];
...
...
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