mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-07 13:08:06 +00:00
avfilter/af_ashowinfo: fix scaling factor of replaygain peak values
Commit8542f9c4f1
changed replaygain peak values to use 100k instead of UINT32_MAX as peak, with possibility of overflow. af_ashowinfo was never updated to reflect this, so we update it now. Fixes:8542f9c4f1
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
parent
5215ec677c
commit
7902702762
@ -120,7 +120,7 @@ static void print_peak(AVFilterContext *ctx, const char *str, uint32_t peak)
|
|||||||
if (!peak)
|
if (!peak)
|
||||||
av_log(ctx, AV_LOG_INFO, "unknown");
|
av_log(ctx, AV_LOG_INFO, "unknown");
|
||||||
else
|
else
|
||||||
av_log(ctx, AV_LOG_INFO, "%f", (float)peak / UINT32_MAX);
|
av_log(ctx, AV_LOG_INFO, "%f", peak / 100000.0f);
|
||||||
av_log(ctx, AV_LOG_INFO, ", ");
|
av_log(ctx, AV_LOG_INFO, ", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user