Revision 0ab07420

View differences:

libavformat/matroska.c
69 69
/* IDs in the info master */
70 70
#define MATROSKA_ID_TIMECODESCALE 0x2AD7B1
71 71
#define MATROSKA_ID_DURATION   0x4489
72
#define MATROSKA_ID_TITLE      0x7BA9
72 73
#define MATROSKA_ID_WRITINGAPP 0x5741
73 74
#define MATROSKA_ID_MUXINGAPP  0x4D80
74 75
#define MATROSKA_ID_DATEUTC    0x4461
......
1096 1097
                break;
1097 1098
            }
1098 1099

  
1100
            case MATROSKA_ID_TITLE: {
1101
                char *text;
1102
                if ((res = ebml_read_utf8(matroska, &id, &text)) < 0)
1103
                    break;
1104
                strncpy(matroska->ctx->title, text,
1105
                        sizeof(matroska->ctx->title)-1);
1106
                av_free(text);
1107
                break;
1108
            }
1109

  
1099 1110
            case MATROSKA_ID_WRITINGAPP: {
1100 1111
                char *text;
1101 1112
                if ((res = ebml_read_utf8(matroska, &id, &text)) < 0)

Also available in: Unified diff