ffmpeg: fix check for muxing overhead being unknown

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-29 23:39:54 +02:00
parent 02a3e327f1
commit b3f4615081
1 changed files with 1 additions and 1 deletions

View File

@ -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");