]> git.sesse.net Git - mlt/commitdiff
Fix regression on 1920x1088 clips.
authorDan Dennedy <dan@dennedy.org>
Wed, 10 Nov 2010 01:53:59 +0000 (17:53 -0800)
committerDan Dennedy <dan@dennedy.org>
Wed, 10 Nov 2010 01:54:20 +0000 (17:54 -0800)
src/modules/avformat/producer_avformat.c

index 1947bf65bc8ed83f411140f570b4f167b8631aa8..668e9f97780271bb46613d16c30a775f4191c579 100644 (file)
@@ -1679,7 +1679,7 @@ static void producer_set_up_video( producer_avformat this, mlt_frame frame )
                mlt_properties_set_int( frame_properties, "colorspace", this->colorspace );
 
                // Workaround 1088 encodings missing cropping info.
-               if ( this->video_codec->height == 1088 && aspect_ratio * this->video_codec->width / 1080 == 16.0/9.0 )
+               if ( this->video_codec->height == 1088 && mlt_profile_dar( mlt_service_profile( MLT_PRODUCER_SERVICE( producer ) ) ) == 16.0/9.0 )
                {
                        mlt_properties_set_int( properties, "meta.media.height", 1080 );
                        mlt_properties_set_int( frame_properties, "real_height", 1080 );