@@ -147,7 +147,7 @@ typedef struct {
147147 unsigned char * dp[] = { NULL , NULL , NULL , NULL };
148148 int pitch[4 ];
149149
150- int pht[4 ], pwd[4 ];
150+ // int pht[4], pwd[4];
151151 for (int p = 0 ; p < nplanes; p++)
152152 {
153153 pitch[p] = vsapi->getStride (dst, p) / nbytes;
@@ -275,6 +275,13 @@ typedef struct {
275275 vsapi->freeNode (d.node );
276276 return ;
277277 }
278+
279+ if (d.vi ->format ->sampleType == stFloat && d.vi ->format ->bitsPerSample == 16 )
280+ {
281+ vsapi->setError (out, " deJitter: Half float formats not allowed " );
282+ vsapi->freeNode (d.node );
283+ return ;
284+ }
278285
279286 if (d.vi ->format ->subSamplingH != 0 || d.vi ->format ->subSamplingW != 0 )
280287 {
@@ -283,7 +290,7 @@ typedef struct {
283290 return ;
284291 }
285292
286- temp = vsapi->propGetInt (in, " jmax" , 0 , &err);
293+ temp = int64ToIntS ( vsapi->propGetInt (in, " jmax" , 0 , &err) );
287294
288295 if (err)
289296 d.jmax = 40 ;
@@ -295,7 +302,7 @@ typedef struct {
295302 }
296303 d.jmax = temp;
297304
298- temp = vsapi->propGetInt (in, " wsyn" , 0 , &err);
305+ temp = int64ToIntS ( vsapi->propGetInt (in, " wsyn" , 0 , &err) );
299306
300307 if (err)
301308 d.wsyn = 20 ;
@@ -307,7 +314,7 @@ typedef struct {
307314 }
308315 else
309316 d.wsyn = temp;
310- d.thresh = vsapi->propGetFloat (in, " thresh" , 0 , &err);
317+ d.thresh = ( float ) vsapi->propGetFloat (in, " thresh" , 0 , &err);
311318
312319 if (err)
313320 d.thresh = 0 .08f ;
0 commit comments