Commit b960df55 authored by aurel's avatar aurel

Allow reading matroska title.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6927 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e8c77fe4
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
/* IDs in the info master */ /* IDs in the info master */
#define MATROSKA_ID_TIMECODESCALE 0x2AD7B1 #define MATROSKA_ID_TIMECODESCALE 0x2AD7B1
#define MATROSKA_ID_DURATION 0x4489 #define MATROSKA_ID_DURATION 0x4489
#define MATROSKA_ID_TITLE 0x7BA9
#define MATROSKA_ID_WRITINGAPP 0x5741 #define MATROSKA_ID_WRITINGAPP 0x5741
#define MATROSKA_ID_MUXINGAPP 0x4D80 #define MATROSKA_ID_MUXINGAPP 0x4D80
#define MATROSKA_ID_DATEUTC 0x4461 #define MATROSKA_ID_DATEUTC 0x4461
...@@ -1096,6 +1097,16 @@ matroska_parse_info (MatroskaDemuxContext *matroska) ...@@ -1096,6 +1097,16 @@ matroska_parse_info (MatroskaDemuxContext *matroska)
break; 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: { case MATROSKA_ID_WRITINGAPP: {
char *text; char *text;
if ((res = ebml_read_utf8(matroska, &id, &text)) < 0) if ((res = ebml_read_utf8(matroska, &id, &text)) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment