From a600d8a231927c96e7a08590e21a970c35e2500f Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Wed, 22 Sep 2010 00:03:37 +0000 Subject: [PATCH] * Handle libavformat format name "matroska,webm". --- metadata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata.c b/metadata.c index 4d4b562..f2479f2 100644 --- a/metadata.c +++ b/metadata.c @@ -1051,7 +1051,8 @@ GetVideoMetadata(const char * path, char * name) asprintf(&m.mime, "video/quicktime"); else asprintf(&m.mime, "video/mp4"); - else if( strcmp(ctx->iformat->name, "matroska") == 0 ) + else if( strcmp(ctx->iformat->name, "matroska") == 0 || + strcmp(ctx->iformat->name, "matroska,webm") == 0 ) asprintf(&m.mime, "video/x-matroska"); else if( strcmp(ctx->iformat->name, "flv") == 0 ) asprintf(&m.mime, "video/x-flv");