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
162f56f7
Commit
162f56f7
authored
May 31, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: code cosmetics and copyright update
parent
c7bc593d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
73 deletions
+62
-73
modules/demux/mkv/chapter_command.cpp
modules/demux/mkv/chapter_command.cpp
+14
-17
modules/demux/mkv/chapter_command.hpp
modules/demux/mkv/chapter_command.hpp
+10
-10
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment.cpp
+3
-8
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+33
-36
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+1
-1
modules/demux/mkv/mkv.hpp
modules/demux/mkv/mkv.hpp
+1
-1
No files found.
modules/demux/mkv/chapter_command.cpp
View file @
162f56f7
...
@@ -24,13 +24,10 @@
...
@@ -24,13 +24,10 @@
#include "chapter_command.hpp"
#include "chapter_command.hpp"
void
chapter_codec_cmds_c
::
AddCommand
(
const
KaxChapterProcessCommand
&
command
)
void
chapter_codec_cmds_c
::
AddCommand
(
const
KaxChapterProcessCommand
&
command
)
{
{
size_t
i
;
uint32
codec_time
=
uint32
(
-
1
);
uint32
codec_time
=
uint32
(
-
1
);
for
(
i
=
0
;
i
<
command
.
ListSize
();
i
++
)
for
(
size_t
i
=
0
;
i
<
command
.
ListSize
();
i
++
)
{
{
const
EbmlElement
*
k
=
command
[
i
];
const
EbmlElement
*
k
=
command
[
i
];
...
@@ -41,7 +38,7 @@ void chapter_codec_cmds_c::AddCommand( const KaxChapterProcessCommand & command
...
@@ -41,7 +38,7 @@ void chapter_codec_cmds_c::AddCommand( const KaxChapterProcessCommand & command
}
}
}
}
for
(
i
=
0
;
i
<
command
.
ListSize
();
i
++
)
for
(
size_t
i
=
0
;
i
<
command
.
ListSize
();
i
++
)
{
{
const
EbmlElement
*
k
=
command
[
i
];
const
EbmlElement
*
k
=
command
[
i
];
...
...
modules/demux/mkv/chapter_command.hpp
View file @
162f56f7
modules/demux/mkv/matroska_segment.cpp
View file @
162f56f7
/*****************************************************************************
/*****************************************************************************
* mkv.cpp : matroska demuxer
* mkv.cpp : matroska demuxer
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003-20
04
the VideoLAN team
* Copyright (C) 2003-20
10
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
@@ -349,7 +349,6 @@ void matroska_segment_c::IndexAppendCluster( KaxCluster *cluster )
...
@@ -349,7 +349,6 @@ void matroska_segment_c::IndexAppendCluster( KaxCluster *cluster )
#undef idx
#undef idx
}
}
bool
matroska_segment_c
::
PreloadFamily
(
const
matroska_segment_c
&
of_segment
)
bool
matroska_segment_c
::
PreloadFamily
(
const
matroska_segment_c
&
of_segment
)
{
{
if
(
b_preloaded
)
if
(
b_preloaded
)
...
@@ -721,12 +720,10 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
...
@@ -721,12 +720,10 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
}
}
}
}
int
matroska_segment_c
::
BlockFindTrackIndex
(
size_t
*
pi_track
,
int
matroska_segment_c
::
BlockFindTrackIndex
(
size_t
*
pi_track
,
const
KaxBlock
*
p_block
,
const
KaxSimpleBlock
*
p_simpleblock
)
const
KaxBlock
*
p_block
,
const
KaxSimpleBlock
*
p_simpleblock
)
{
{
size_t
i_track
;
size_t
i_track
;
for
(
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
for
(
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
{
{
const
mkv_track_t
*
tk
=
tracks
[
i_track
];
const
mkv_track_t
*
tk
=
tracks
[
i_track
];
...
@@ -1196,9 +1193,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
...
@@ -1196,9 +1193,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
void
matroska_segment_c
::
UnSelect
(
)
void
matroska_segment_c
::
UnSelect
(
)
{
{
size_t
i_track
;
for
(
size_t
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
for
(
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
{
{
if
(
tracks
[
i_track
]
->
p_es
!=
NULL
)
if
(
tracks
[
i_track
]
->
p_es
!=
NULL
)
{
{
...
...
modules/demux/mkv/matroska_segment_parse.cpp
View file @
162f56f7
/*****************************************************************************
/*****************************************************************************
* mkv.cpp : matroska demuxer
* mkv.cpp : matroska demuxer
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003-20
04
the VideoLAN team
* Copyright (C) 2003-20
10
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
@@ -140,7 +140,7 @@ static void MkvTree( demux_t & demuxer, int i_level, const char *psz_format, ...
...
@@ -140,7 +140,7 @@ static void MkvTree( demux_t & demuxer, int i_level, const char *psz_format, ...
va_list
args
;
va_list
args
;
if
(
i_level
>
9
)
if
(
i_level
>
9
)
{
{
msg_Err
(
&
demuxer
,
"
too deep tree
"
);
msg_Err
(
&
demuxer
,
"
MKV tree is too deep
"
);
return
;
return
;
}
}
va_start
(
args
,
psz_format
);
va_start
(
args
,
psz_format
);
...
@@ -163,13 +163,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
...
@@ -163,13 +163,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
{
{
bool
bSupported
=
true
;
bool
bSupported
=
true
;
mkv_track_t
*
tk
;
msg_Dbg
(
&
sys
.
demuxer
,
"| | + Track Entry"
);
tk
=
new
mkv_track_t
();
/* Init the track */
/* Init the track */
mkv_track_t
*
tk
=
new
mkv_track_t
();
memset
(
tk
,
0
,
sizeof
(
mkv_track_t
)
);
memset
(
tk
,
0
,
sizeof
(
mkv_track_t
)
);
es_format_Init
(
&
tk
->
fmt
,
UNKNOWN_ES
,
0
);
es_format_Init
(
&
tk
->
fmt
,
UNKNOWN_ES
,
0
);
...
@@ -199,6 +194,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
...
@@ -199,6 +194,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
tk
->
i_compression_type
=
MATROSKA_COMPRESSION_NONE
;
tk
->
i_compression_type
=
MATROSKA_COMPRESSION_NONE
;
tk
->
p_compression_data
=
NULL
;
tk
->
p_compression_data
=
NULL
;
msg_Dbg
(
&
sys
.
demuxer
,
"| | + Track Entry"
);
for
(
size_t
i
=
0
;
i
<
m
->
ListSize
();
i
++
)
for
(
size_t
i
=
0
;
i
<
m
->
ListSize
();
i
++
)
{
{
EbmlElement
*
l
=
(
*
m
)[
i
];
EbmlElement
*
l
=
(
*
m
)[
i
];
...
...
modules/demux/mkv/mkv.cpp
View file @
162f56f7
/*****************************************************************************
/*****************************************************************************
* mkv.cpp : matroska demuxer
* mkv.cpp : matroska demuxer
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003-200
4
the VideoLAN team
* Copyright (C) 2003-200
5, 2008, 2010
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
...
modules/demux/mkv/mkv.hpp
View file @
162f56f7
/*****************************************************************************
/*****************************************************************************
* mkv.cpp : matroska demuxer
* mkv.cpp : matroska demuxer
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003-200
4
the VideoLAN team
* Copyright (C) 2003-200
5, 2008
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
...
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