diff options
author | Justin Maggard <jmaggard@users.sourceforge.net> | 2010-10-25 22:42:06 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforge.net> | 2010-10-25 22:42:06 +0400 |
commit | 8a2e595f0af8d188e1a5ccc76adf837e2cd64a7a (patch) | |
tree | aa718380bdd268e33ca0554fd160b8f90976f95a | |
parent | d77359b7658047f3800ae6275a66a3e1a10d9b76 (diff) |
* Handle the "mpegvideo" format name.
-rw-r--r-- | metadata.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); |