summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deshake.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-29 20:00:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-29 20:00:48 +0100
commit3cd137bfeac84b6147a8708f55d5888cf3a0f80a (patch)
tree5081db197ea2ba62211250aa61e3a49bcec1482f /libavfilter/vf_deshake.c
parentaa9507cc3d56cc77f078afe5a1f88ebce09072f2 (diff)
vf_deshake: fix strict aliassing errors
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_deshake.c')
-rw-r--r--libavfilter/vf_deshake.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 206f701984..c03919c96d 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -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;