* Don't classify an MPEG1 video file with the MPEG1 DLNA profile if the resolution is too high for that profile.
This commit is contained in:
@ -617,8 +617,12 @@ GetVideoMetadata(const char * path, char * name)
|
||||
{
|
||||
case CODEC_ID_MPEG1VIDEO:
|
||||
if( strcmp(ctx->iformat->name, "mpeg") == 0 )
|
||||
{
|
||||
if( (ctx->streams[video_stream]->codec->width == 352) &&
|
||||
(ctx->streams[video_stream]->codec->height <= 288) )
|
||||
{
|
||||
asprintf(&m.dlna_pn, "MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0");
|
||||
}
|
||||
asprintf(&m.mime, "video/mpeg");
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user