diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-29 15:37:05 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-29 15:47:42 +0100 |
commit | 98626a1a4c3e7adca768a1e461399358589ea4b5 (patch) | |
tree | 2d775392f6e533dcb34a33527d5bf2959ef2b5fa /libavfilter/avf_showvolume.c | |
parent | 81b73f1f979557a6b94d57219e215a4479b3307b (diff) | |
download | ffmpeg-98626a1a4c3e7adca768a1e461399358589ea4b5.tar.gz |
avfilter/avf_showvolume: Fix "warning: comparison of unsigned expression < 0 is always false"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/avf_showvolume.c')
-rw-r--r-- | libavfilter/avf_showvolume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c index 586f698c20..f7ccdf739e 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -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); } } |