]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/consumer_avformat.c
Attempt at an aspect ratio clean up
[mlt] / src / modules / avformat / consumer_avformat.c
index 318aec6baaced4f5297d1c4f877a4049a0450174..9b431259fe7503f011a6dd9b69b6e40cd8af60fa 100644 (file)
@@ -853,6 +853,14 @@ static void *consumer_thread( void *arg )
                                                uint8_t *q;
 
                                                mlt_events_fire( properties, "consumer-frame-show", frame, NULL );
+
+                                               // This will cause some fx to go awry....
+                                               if ( mlt_properties_get_int( properties, "transcode" ) )
+                                               {
+                                                       mlt_properties_set_int( mlt_frame_properties( frame ), "normalised_width", img_height * 4.0 / 3.0 );
+                                                       mlt_properties_set_int( mlt_frame_properties( frame ), "normalised_height", img_height );
+                                               }
+
                                                mlt_frame_get_image( frame, &image, &img_fmt, &img_width, &img_height, 0 );
 
                                                q = image;