From 047b9511a632e96d011d0d3d881cc30ed357aaad Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Wed, 1 Apr 2009 20:16:37 +0000 Subject: [PATCH] * Don't classify an MPEG1 video file with the MPEG1 DLNA profile if the resolution is too high for that profile. --- metadata.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/metadata.c b/metadata.c index d18dabd..d41ee5a 100644 --- a/metadata.c +++ b/metadata.c @@ -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;