* 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:
Justin Maggard 2009-04-01 20:16:37 +00:00
parent 1cf7824fce
commit 047b9511a6

View File

@ -618,7 +618,11 @@ GetVideoMetadata(const char * path, char * name)
case CODEC_ID_MPEG1VIDEO:
if( strcmp(ctx->iformat->name, "mpeg") == 0 )
{
asprintf(&m.dlna_pn, "MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=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;