* Handle libavformat format name "matroska,webm".
This commit is contained in:
parent
acf6f16d02
commit
a600d8a231
@ -1051,7 +1051,8 @@ GetVideoMetadata(const char * path, char * name)
|
|||||||
asprintf(&m.mime, "video/quicktime");
|
asprintf(&m.mime, "video/quicktime");
|
||||||
else
|
else
|
||||||
asprintf(&m.mime, "video/mp4");
|
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");
|
asprintf(&m.mime, "video/x-matroska");
|
||||||
else if( strcmp(ctx->iformat->name, "flv") == 0 )
|
else if( strcmp(ctx->iformat->name, "flv") == 0 )
|
||||||
asprintf(&m.mime, "video/x-flv");
|
asprintf(&m.mime, "video/x-flv");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user