From: gmarco Date: Wed, 21 Dec 2011 23:21:29 +0000 (+0100) Subject: fixed wrong image format X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c1499597ba89a91b2f826d75a5254a5da38ea111;p=mlt fixed wrong image format --- diff --git a/src/modules/videostab/filter_videostab.c b/src/modules/videostab/filter_videostab.c index aee1536c..0cd0cd54 100644 --- a/src/modules/videostab/filter_videostab.c +++ b/src/modules/videostab/filter_videostab.c @@ -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 ) {