]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_fieldorder.c
add ability to ignore field order as used by sdl consumer
[mlt] / src / modules / core / filter_fieldorder.c
index 259981154f247f79c72faa8fe3164d3f9b80d932..79223757323d84cd9e10801aa1313a353f0b7285 100644 (file)
@@ -74,7 +74,8 @@ static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format
                }
 
                // Correct field order if needed
-               if ( mlt_properties_get_int( properties, "top_field_first" ) != tff &&
+               if ( tff != -1 &&
+                    mlt_properties_get_int( properties, "top_field_first" ) != tff &&
                     mlt_properties_get( properties, "progressive" ) &&
                     mlt_properties_get_int( properties, "progressive" ) == 0 )
                {