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
75be9a03
Commit
75be9a03
authored
Apr 11, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: store the translation between segment IDs for each chapter codec
parent
8a983190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
1 deletion
+39
-1
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+39
-1
No files found.
modules/demux/mkv.cpp
View file @
75be9a03
...
...
@@ -80,6 +80,7 @@
#include "matroska/KaxTrackVideo.h"
#include "matroska/KaxTrackEntryData.h"
#include "matroska/KaxContentEncoding.h"
#include "matroska/KaxVersion.h"
#include "ebml/StdIOCallback.h"
...
...
@@ -341,6 +342,14 @@ class matroska_script_codec_t : public chapter_codec_cmds_t
{
};
class
chapter_translation_t
{
public:
KaxChapterTranslateID
translated
;
unsigned
int
codec_id
;
std
::
vector
<
uint64_t
>
editions
;
};
class
chapter_item_t
{
public:
...
...
@@ -526,6 +535,7 @@ public:
std
::
vector
<
chapter_edition_t
>
stored_editions
;
int
i_default_edition
;
std
::
vector
<
chapter_translation_t
>
translations
;
std
::
vector
<
KaxSegmentFamily
>
families
;
demux_sys_t
&
sys
;
...
...
@@ -2900,7 +2910,7 @@ void matroska_segment_t::ParseInfo( EbmlElement *info )
{
EbmlElement
*
el
;
EbmlMaster
*
m
;
unsigned
int
i
;
size_t
i
,
j
;
int
i_upper_level
=
0
;
msg_Dbg
(
&
sys
.
demuxer
,
"| + Information"
);
...
...
@@ -3010,6 +3020,34 @@ void matroska_segment_t::ParseInfo( EbmlElement *info )
msg_Dbg
(
&
sys
.
demuxer
,
"| | + Date=%s"
,
psz_date_utc
);
}
}
#endif
#if LIBMATROSKA_VERSION >= 0x000704
else
if
(
MKV_IS_ID
(
l
,
KaxChapterTranslate
)
)
{
KaxChapterTranslate
*
p_trans
=
static_cast
<
KaxChapterTranslate
*>
(
l
);
chapter_translation_t
translated
;
p_trans
->
Read
(
es
,
p_trans
->
Generic
().
Context
,
i_upper_level
,
el
,
true
);
for
(
j
=
0
;
j
<
p_trans
->
ListSize
();
j
++
)
{
EbmlElement
*
l
=
(
*
p_trans
)[
j
];
if
(
MKV_IS_ID
(
l
,
KaxChapterTranslateEditionUID
)
)
{
translated
.
editions
.
push_back
(
uint64
(
*
static_cast
<
KaxChapterTranslateEditionUID
*>
(
l
)
)
);
}
else
if
(
MKV_IS_ID
(
l
,
KaxChapterTranslateCodec
)
)
{
translated
.
codec_id
=
uint32
(
*
static_cast
<
KaxChapterTranslateCodec
*>
(
l
)
);
}
else
if
(
MKV_IS_ID
(
l
,
KaxChapterTranslateID
)
)
{
translated
.
translated
=
*
(
new
KaxChapterTranslateID
(
*
static_cast
<
KaxChapterTranslateID
*>
(
l
)
)
);
}
}
translations
.
push_back
(
translated
);
}
#endif
else
{
...
...
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