From ef765a5b52c93b5044a390fbe1c31a412cf59888 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Thu, 9 Apr 2009 07:14:23 +0000 Subject: [PATCH] consumer_avformat: bugfix (kdenlive-677) to make interlaced coding automatic if profile is not progressive and coding not explicit by ildct and ilme properties. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1384 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/avformat/consumer_avformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index 7757bb7b..d2ade605 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -597,9 +597,9 @@ static AVStream *add_video_stream( mlt_consumer this, AVFormatContext *oc, int c if ( mlt_properties_get_int( properties, "progressive" ) == 0 && mlt_properties_get_int( properties, "deinterlace" ) == 0 ) { - if ( mlt_properties_get_int( properties, "ildct" ) ) + if ( ! mlt_properties_get( properties, "ildct" ) || mlt_properties_get_int( properties, "ildct" ) ) c->flags |= CODEC_FLAG_INTERLACED_DCT; - if ( mlt_properties_get_int( properties, "ilme" ) ) + if ( ! mlt_properties_get( properties, "ilme" ) || mlt_properties_get_int( properties, "ilme" ) ) c->flags |= CODEC_FLAG_INTERLACED_ME; } -- 2.39.2