Skip to content

Commit

Permalink
lavfi/fspp: Simplify a macro.
Browse files Browse the repository at this point in the history
Silences a warning with clang:
warning: implicit conversion from 'int' to 'int16_t' (aka 'short') changes value from 44130 to -21406
  • Loading branch information
cehoyos committed Apr 19, 2019
1 parent 48860df commit 9320990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavfilter/vf_fspp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define DCTSIZE 8
#define DCTSIZE_S "8"

#define FIX(x,s) ((int) ((x) * (1 << s) + 0.5) & 0xffff)
#define FIX(x,s) ((x) * (1 << s) + 0.5)

#define MULTIPLY16H(x,k) (((x) * (k)) >> 16)
#define THRESHOLD(r,x,t) \
Expand Down

0 comments on commit 9320990

Please sign in to comment.