aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-29 23:39:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-29 23:39:54 +0200
commitb3f461508176236bd9d7c2762fd70e339b1494f8 (patch)
tree0b50c4c03e732a8506ddb940efda50f920158d5b /ffmpeg.c
parent02a3e327f118efc118d30fc390e59c5119c6920d (diff)
downloadffmpeg-b3f461508176236bd9d7c2762fd70e339b1494f8.tar.gz
ffmpeg: fix check for muxing overhead being unknown
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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");