ffmpeg: fix check for muxing overhead being unknown
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 29 May 2014 21:39:54 +0000 (23:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 29 May 2014 21:39:54 +0000 (23:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index a0e2be2..27b8f02 100644 (file)
--- 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");