Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0ab07420
Commit
0ab07420
authored
Nov 07, 2006
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow reading matroska title.
Originally committed as revision 6927 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5b99b90d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
matroska.c
libavformat/matroska.c
+11
-0
No files found.
libavformat/matroska.c
View file @
0ab07420
...
...
@@ -69,6 +69,7 @@
/* IDs in the info master */
#define MATROSKA_ID_TIMECODESCALE 0x2AD7B1
#define MATROSKA_ID_DURATION 0x4489
#define MATROSKA_ID_TITLE 0x7BA9
#define MATROSKA_ID_WRITINGAPP 0x5741
#define MATROSKA_ID_MUXINGAPP 0x4D80
#define MATROSKA_ID_DATEUTC 0x4461
...
...
@@ -1096,6 +1097,16 @@ matroska_parse_info (MatroskaDemuxContext *matroska)
break
;
}
case
MATROSKA_ID_TITLE
:
{
char
*
text
;
if
((
res
=
ebml_read_utf8
(
matroska
,
&
id
,
&
text
))
<
0
)
break
;
strncpy
(
matroska
->
ctx
->
title
,
text
,
sizeof
(
matroska
->
ctx
->
title
)
-
1
);
av_free
(
text
);
break
;
}
case
MATROSKA_ID_WRITINGAPP
:
{
char
*
text
;
if
((
res
=
ebml_read_utf8
(
matroska
,
&
id
,
&
text
))
<
0
)
...
...
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