]> git.sesse.net Git - ffmpeg/commitdiff
vf_deshake: fix strict aliassing errors
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 19:00:48 +0000 (20:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 19:00:48 +0000 (20:00 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_deshake.c

index 206f7019843aa14646476f5cce00e966e09ed084..c03919c96db493d4fe1a3c7a2016c3ca51912ebb 100644 (file)
@@ -90,10 +90,10 @@ typedef struct {
     AVFilterBufferRef *ref;    ///< Previous frame
     int rx;                    ///< Maximum horizontal shift
     int ry;                    ///< Maximum vertical shift
-    enum FillMethod edge;      ///< Edge fill method
+    int edge;                  ///< Edge fill method
     int blocksize;             ///< Size of blocks to compare
     int contrast;              ///< Contrast threshold
-    enum SearchMethod search;  ///< Motion search method
+    int search;                ///< Motion search method
     AVCodecContext *avctx;
     DSPContext c;              ///< Context providing optimized SAD methods
     Transform last;            ///< Transform from last frame
@@ -353,8 +353,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     if (args) {
         sscanf(args, "%d:%d:%d:%d:%d:%d:%d:%d:%d:%d:%255s",
                &deshake->cx, &deshake->cy, &deshake->cw, &deshake->ch,
-               &deshake->rx, &deshake->ry, (int *)&deshake->edge,
-               &deshake->blocksize, &deshake->contrast, (int *)&deshake->search, filename);
+               &deshake->rx, &deshake->ry, &deshake->edge,
+               &deshake->blocksize, &deshake->contrast, &deshake->search, filename);
 
         deshake->blocksize /= 2;