提交 98626a1a 编写于 作者: M Michael Niedermayer

avfilter/avf_showvolume: Fix "warning: comparison of unsigned expression < 0 is always false"

Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 81b73f1f
......@@ -231,7 +231,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
char buf[16];
snprintf(buf, sizeof(buf), "%.2f", s->values[c * VAR_VARS_NB + VAR_VOLUME]);
drawtext(out, FFMAX(0, s->w - 8 * strlen(buf)), c * (s->h + s->b) + (s->h - 8) / 2, buf);
drawtext(out, FFMAX(0, s->w - 8 * (int)strlen(buf)), c * (s->h + s->b) + (s->h - 8) / 2, buf);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册