Mercurial > libavformat.hg
changeset 3407:ffd297928ed8 libavformat
matroskadec: silently discard some element ID that we don't care about
patch by Anton Khirnov wyskas _at_ gmail _dot_ com
author | aurel |
---|---|
date | Sun, 01 Jun 2008 13:39:54 +0000 |
parents | ea339cc7c630 |
children | da09478c97ce |
files | matroska.h matroskadec.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/matroska.h Sat May 31 14:26:56 2008 +0000 +++ b/matroska.h Sun Jun 01 13:39:54 2008 +0000 @@ -82,10 +82,12 @@ #define MATROSKA_ID_CODECNAME 0x258688 #define MATROSKA_ID_CODECINFOURL 0x3B4040 #define MATROSKA_ID_CODECDOWNLOADURL 0x26B240 +#define MATROSKA_ID_CODECDECODEALL 0xAA #define MATROSKA_ID_TRACKNAME 0x536E #define MATROSKA_ID_TRACKLANGUAGE 0x22B59C #define MATROSKA_ID_TRACKFLAGENABLED 0xB9 #define MATROSKA_ID_TRACKFLAGDEFAULT 0x88 +#define MATROSKA_ID_TRACKFLAGFORCED 0x55AA #define MATROSKA_ID_TRACKFLAGLACING 0x9C #define MATROSKA_ID_TRACKMINCACHE 0x6DE7 #define MATROSKA_ID_TRACKMAXCACHE 0x6DF8 @@ -165,6 +167,7 @@ #define MATROSKA_ID_CHAPSTRING 0x85 #define MATROSKA_ID_EDITIONUID 0x45BC #define MATROSKA_ID_EDITIONFLAGHIDDEN 0x45BD +#define MATROSKA_ID_EDITIONFLAGDEFAULT 0x45DB #define MATROSKA_ID_CHAPTERUID 0x73C4 #define MATROSKA_ID_CHAPTERFLAGHIDDEN 0x98
--- a/matroskadec.c Sat May 31 14:26:56 2008 +0000 +++ b/matroskadec.c Sun Jun 01 13:39:54 2008 +0000 @@ -996,6 +996,7 @@ "Unknown entry 0x%x in info header\n", id); /* fall-through */ + case MATROSKA_ID_SEGMENTUID: case EBML_ID_VOID: res = ebml_read_skip(matroska); break; @@ -1595,6 +1596,8 @@ case EBML_ID_VOID: /* we ignore these because they're nothing useful. */ + case MATROSKA_ID_TRACKFLAGFORCED: + case MATROSKA_ID_CODECDECODEALL: case MATROSKA_ID_CODECINFOURL: case MATROSKA_ID_CODECDOWNLOADURL: case MATROSKA_ID_TRACKMINCACHE: @@ -2080,6 +2083,7 @@ default: av_log(matroska->ctx, AV_LOG_INFO, "Unknown attachedfile ID 0x%x\n", id); + case MATROSKA_ID_FILEUID: case EBML_ID_VOID: res = ebml_read_skip(matroska); break; @@ -2264,6 +2268,7 @@ av_log(s, AV_LOG_INFO, "Ignoring unknown Edition entry ID 0x%x\n", id); case MATROSKA_ID_EDITIONUID: case MATROSKA_ID_EDITIONFLAGHIDDEN: + case MATROSKA_ID_EDITIONFLAGDEFAULT: case EBML_ID_VOID: res = ebml_read_skip(matroska); break;