Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c8b78f40
Commit
c8b78f40
authored
Jan 26, 2012
by
Denis Charmet
Committed by
Jean-Baptiste Kempf
Jan 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow Ebml elements bigger than 64GB
Should fix #5919 Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
dc3430bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
modules/demux/mkv/demux.cpp
modules/demux/mkv/demux.cpp
+5
-4
modules/demux/mkv/stream_io_callback.cpp
modules/demux/mkv/stream_io_callback.cpp
+1
-1
No files found.
modules/demux/mkv/demux.cpp
View file @
c8b78f40
...
...
@@ -24,7 +24,7 @@
*****************************************************************************/
#include "demux.hpp"
#include "stream_io_callback.hpp"
#include "Ebml_parser.hpp"
event_thread_t
::
event_thread_t
(
demux_t
*
p_demux
)
:
p_demux
(
p_demux
)
...
...
@@ -463,7 +463,8 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
bool
b_keep_stream
=
false
,
b_keep_segment
=
false
;
// verify the EBML Header
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
EbmlHead
),
0xFFFFFFFFL
);
vlc_stream_io_callback
&
io_stream
=
(
vlc_stream_io_callback
&
)
p_estream
->
I_O
();
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
EbmlHead
),
io_stream
.
toRead
());
if
(
p_l0
==
NULL
)
{
msg_Err
(
p_demux
,
"No EBML header found"
);
...
...
@@ -491,7 +492,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
// find all segments in this file
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
KaxSegment
),
0xFFFFFFFFFLL
);
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
KaxSegment
),
io_stream
.
toRead
()
);
if
(
p_l0
==
NULL
)
{
return
NULL
;
...
...
@@ -565,7 +566,7 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
if
(
p_l0
->
IsFiniteSize
()
)
{
p_l0
->
SkipData
(
*
p_estream
,
KaxMatroska_Context
);
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
KaxSegment
),
0xFFFFFFFFL
);
p_l0
=
p_estream
->
FindNextID
(
EBML_INFO
(
KaxSegment
),
io_stream
.
toRead
()
);
}
else
{
...
...
modules/demux/mkv/stream_io_callback.cpp
View file @
c8b78f40
...
...
@@ -97,7 +97,7 @@ uint64 vlc_stream_io_callback::toRead( void )
stream_Control
(
s
,
STREAM_GET_SIZE
,
&
i_size
);
if
(
i_size
==
0
)
return
0xFFFFFFFFL
;
return
UINT64_MAX
;
return
(
uint64
)
i_size
-
stream_Tell
(
s
);
}
...
...
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