Commit f5e74e8d authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avfilter/vf_paletteuse: Add missing parentheses

Fixes a mistake in dea673d0.
GCC emitted a -Wint-in-bool-context warning because of that.
Reviewed-by: 's avatarSoft Works <softworkz@hotmail.com>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 6fdd7fe0
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment