- //double position = mlt_filter_get_progress( filter, frame );
-
- mlt_properties pro=prod_props;
- in=mlt_properties_get_int( pro, "in" );
- out=mlt_properties_get_int( pro, "out" );
- length=mlt_properties_get_int( pro, "length" );
- mlt_log_verbose(filter,"deshaking for in=%d out=%d length=%d\n",in,out,length);
- if (!self->initialized){
- int fps = mlt_profile_fps( profile );
-
- self->pos_h = (vc *)malloc(length * sizeof(vc));
-
+ if (!self->initialized)
+ {
+ int fps = mlt_profile_fps( profile );
+ self->pos_h = (vc *)malloc(length * sizeof(vc));