]> git.sesse.net Git - mlt/blobdiff - src/modules/dv/producer_libdv.c
Data feed and show filters
[mlt] / src / modules / dv / producer_libdv.c
index 249213d278943e31d30c18e95ee5ff271838d240..6ab349c403924776066bd2a7488b0ebc6236ec24 100644 (file)
@@ -415,7 +415,7 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
                // Update other info on the frame
                mlt_properties_set_int( properties, "width", 720 );
                mlt_properties_set_int( properties, "height", this->is_pal ? 576 : 480 );
-               mlt_properties_set_int( properties, "top_field_first", 0 );
+               mlt_properties_set_int( properties, "top_field_first", !this->is_pal ? 0 : ( data[ 5 ] & 0x07 ) == 0 ? 0 : 1 );
 
                // Parse the header for meta info
                dv_parse_header( dv_decoder, data );