avfilter/vf_paletteuse: Add missing parentheses

Fixes a mistake in dea673d0d5.
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>
This commit is contained in:
Andreas Rheinhardt 2021-11-27 14:54:26 +01:00
parent 6fdd7fe0b8
commit f5e74e8d48
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {