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
885a0983
Commit
885a0983
authored
Mar 12, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: better segment initialisation
parent
95fc07b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
24 deletions
+11
-24
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+11
-24
No files found.
modules/demux/mkv.cpp
View file @
885a0983
...
...
@@ -373,14 +373,13 @@ public:
:
segment
(
NULL
)
,
i_timescale
(
MKVD_TIMECODESCALE
)
,
f_duration
(
-
1.0
)
,
i_cues_position
(
0
)
,
i_chapters_position
(
0
)
,
i_tags_position
(
0
)
,
i_cues_position
(
-
1
)
,
i_chapters_position
(
-
1
)
,
i_tags_position
(
-
1
)
,
cluster
(
NULL
)
,
b_cues
(
false
)
,
b_cues
(
VLC_FALSE
)
,
i_index
(
0
)
,
i_index_max
(
0
)
,
index
(
NULL
)
,
i_index_max
(
1024
)
,
psz_muxing_application
(
NULL
)
,
psz_writing_application
(
NULL
)
,
psz_segment_filename
(
NULL
)
...
...
@@ -391,7 +390,9 @@ public:
,
p_sys
(
p_demuxer
)
,
ep
(
NULL
)
,
b_preloaded
(
false
)
{}
{
index
=
(
mkv_index_t
*
)
malloc
(
sizeof
(
mkv_index_t
)
*
i_index_max
);
}
~
matroska_segment_t
()
{
...
...
@@ -434,7 +435,9 @@ public:
{
free
(
psz_date_utc
);
}
if
(
index
)
free
(
index
);
delete
ep
;
}
...
...
@@ -600,7 +603,6 @@ static int Open( vlc_object_t * p_this )
demux_sys_t
*
p_sys
;
matroska_stream_t
*
p_stream
;
matroska_segment_t
*
p_segment
;
mkv_track_t
*
p_track
;
uint8_t
*
p_peek
;
std
::
string
s_path
,
s_filename
;
size_t
i_track
;
...
...
@@ -630,21 +632,6 @@ static int Open( vlc_object_t * p_this )
p_stream
->
in
=
new
vlc_stream_io_callback
(
p_demux
->
s
);
p_stream
->
es
=
new
EbmlStream
(
*
p_stream
->
in
);
p_track
=
new
mkv_track_t
();
p_segment
->
tracks
.
push_back
(
p_track
);
p_sys
->
i_pts
=
0
;
p_segment
->
i_cues_position
=
-
1
;
p_segment
->
i_chapters_position
=
-
1
;
p_segment
->
i_tags_position
=
-
1
;
p_segment
->
b_cues
=
VLC_FALSE
;
p_segment
->
i_index
=
0
;
p_segment
->
i_index_max
=
1024
;
p_segment
->
index
=
(
mkv_index_t
*
)
malloc
(
sizeof
(
mkv_index_t
)
*
p_segment
->
i_index_max
);
p_sys
->
meta
=
NULL
;
p_sys
->
title
=
NULL
;
if
(
p_stream
->
es
==
NULL
)
{
...
...
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