From b3f461508176236bd9d7c2762fd70e339b1494f8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 29 May 2014 23:39:54 +0200 Subject: [PATCH] ffmpeg: fix check for muxing overhead being unknown Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index a0e2be294f..27b8f02e26 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1220,7 +1220,7 @@ static void print_final_stats(int64_t total_size) data_size += ost->data_size; } - if (data_size && total_size >= data_size) + if (data_size && total_size>0 && total_size >= data_size) percent = 100.0 * (total_size - data_size) / data_size; av_log(NULL, AV_LOG_INFO, "\n");