* Handle the "mpegvideo" format name.

This commit is contained in:
Justin Maggard 2010-10-25 18:42:06 +00:00
parent 8e2d9a72e6
commit 1d56e95f94

View File

@ -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");