mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: fix check for muxing overhead being unknown
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
02a3e327f1
commit
b3f4615081
2
ffmpeg.c
2
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");
|
||||
|
|
Loading…
Reference in New Issue