+ Added producer_sdl_image as an alternative image and image sequence producer
[melted] / src / modules / dv / producer_libdv.c
index 5cde8eb..8484b19 100644 (file)
@@ -300,9 +300,9 @@ static int producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_forma
        // Parse the header for meta info
        dv_parse_header( decoder, dv_data );
        
-       // Assign width and height from properties
-       *width = mlt_properties_get_int( properties, "width" );
-       *height = mlt_properties_get_int( properties, "height" );
+       // Assign width and height according to the frame
+       *width = 720;
+       *height = dv_data[ 3 ] & 0x80 ? 576 : 480;
 
        // Extract an image of the format requested
        if ( *format == mlt_image_yuv422 )