]> git.sesse.net Git - mlt/commitdiff
fixed wrong image format
authorgmarco <g.marco@freenet.de>
Wed, 21 Dec 2011 23:21:29 +0000 (00:21 +0100)
committergmarco <g.marco@freenet.de>
Wed, 21 Dec 2011 23:21:29 +0000 (00:21 +0100)
src/modules/videostab/filter_videostab.c

index aee1536cef466e0c482c701507474b66bc44751b..0cd0cd54d1c7364c01cf9ad45904a2d364f2cadb 100644 (file)
@@ -32,7 +32,7 @@
 #include "stab/vector.h"
 #include "stab/utils.h"
 #include "stab/estimate.h"
-#include "stab/resample.h" 
+#include "stab/resample.h"
 
 
 typedef struct {
@@ -106,9 +106,7 @@ static void deserialize_vectors( videostab self, char *vectors, mlt_position len
 static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
 {
        mlt_filter filter = mlt_frame_pop_service( frame );
-       if (*format != mlt_image_yuv420p){
-               return 1;
-       }
+       *format = mlt_image_rgb24;
        mlt_properties_set_int( MLT_FRAME_PROPERTIES(frame), "consumer_deinterlace", 1 );
        int error = mlt_frame_get_image( frame, image, format, width, height, 1 );
 
@@ -148,9 +146,7 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
                                hipass( self->pos_i, self->pos_h, length, fps );
                                serialize_vectors( self, length );
                        }
-               }
-               if ( vectors )
-               {
+               } else {
                        // Apply
                        if ( self->initialized != 2 )
                        {