Bug fix: -file_size_limit did not increase ISO level if necessary. Thanks Mattias Schlenker.

This commit is contained in:
Thomas Schmitt 2016-09-12 16:37:48 +00:00
parent 32e08e5c8e
commit 062a88e008
2 changed files with 10 additions and 2 deletions

View File

@ -690,12 +690,20 @@ int Xorriso_option_file_size_limit(struct XorrisO *xorriso,
if(new_limit <= 0) {
sprintf(xorriso->info_text, "-file_size_limit: values sum up to %.f",
(double) new_limit);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 1);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
ret= 0; goto ex;
}
xorriso->file_size_limit= new_limit;
ret= 1;
ex:;
if((xorriso->file_size_limit >= ((off_t) 4) * (off_t) (1024 * 1024 * 1024) ||
xorriso->file_size_limit == 0) && xorriso->iso_level < 3 && ret > 0) {
xorriso->iso_level= 3;
xorriso->iso_level_is_default= 0;
Xorriso_msgs_submit(xorriso, 0,
"-file_size_limit of at least 4 GiB causes ISO level 3",
0, "NOTE", 0);
}
(*idx)= end_idx;
if(ret > 0) {
if(xorriso->file_size_limit > 0)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2016.09.12.091506"
#define Xorriso_timestamP "2016.09.12.163816"