summaryrefslogtreecommitdiff
path: root/libavfilter/vf_paletteuse.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-27 14:54:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-27 19:15:19 +0100
commitf5e74e8d484af23e760e1d4ce292b3a983e0b181 (patch)
treef9fa48326859c8fbb909d37b97e548cf9eb0ad78 /libavfilter/vf_paletteuse.c
parent6fdd7fe0b89f5f76314bf06a7d28fb18d0196f84 (diff)
avfilter/vf_paletteuse: Add missing parentheses
Fixes a mistake in dea673d0d548c864ec85f9260d8900d944ef7a2a. GCC emitted a -Wint-in-bool-context warning because of that. Reviewed-by: Soft Works <softworkz@hotmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_paletteuse.c')
-rw-r--r--libavfilter/vf_paletteuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c
index 5f20cd75b2..5b300be5a5 100644
--- a/libavfilter/vf_paletteuse.c
+++ b/libavfilter/vf_paletteuse.c
@@ -811,7 +811,7 @@ static void debug_mean_error(PaletteUseContext *s, const AVFrame *in1,
uint8_t *src2 = in2->data[0];
const int src1_linesize = in1->linesize[0] >> 2;
const int src2_linesize = in2->linesize[0];
- const float div = in1->width * in1->height * s->use_alpha ? 4 : 3;
+ const float div = in1->width * in1->height * (s->use_alpha ? 4 : 3);
unsigned mean_err = 0;
for (y = 0; y < in1->height; y++) {