[FFmpeg-cvslog] ffmpeg: fix check for muxing overhead being unknown

Michael Niedermayer git at videolan.org
Thu May 29 23:50:02 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 29 23:39:54 2014 +0200| [b3f461508176236bd9d7c2762fd70e339b1494f8] | committer: Michael Niedermayer

ffmpeg: fix check for muxing overhead being unknown

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3f461508176236bd9d7c2762fd70e339b1494f8
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index a0e2be2..27b8f02 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");



More information about the ffmpeg-cvslog mailing list