From 1d56e95f94b7393e88e5e6f526b669d4dc6bb8db Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Mon, 25 Oct 2010 18:42:06 +0000 Subject: [PATCH] * Handle the "mpegvideo" format name. --- metadata.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata.c b/metadata.c index eaa8217..879fc68 100644 --- a/metadata.c +++ b/metadata.c @@ -1044,9 +1044,9 @@ GetVideoMetadata(const char * path, char * name) { if( strcmp(ctx->iformat->name, "avi") == 0 ) asprintf(&m.mime, "video/x-msvideo"); - else if( strcmp(ctx->iformat->name, "mpegts") == 0 ) - asprintf(&m.mime, "video/mpeg"); - else if( strcmp(ctx->iformat->name, "mpeg") == 0 ) + else if( strcmp(ctx->iformat->name, "mpegts") == 0 || + strcmp(ctx->iformat->name, "mpeg") == 0 || + strcmp(ctx->iformat->name, "mpegvideo") == 0 ) asprintf(&m.mime, "video/mpeg"); else if( strcmp(ctx->iformat->name, "asf") == 0 ) asprintf(&m.mime, "video/x-ms-wmv");