Adjustment of minimal size for a IsoExternalFilterCommand.behavior bit2 filter

This commit is contained in:
Thomas Schmitt 2009-03-29 18:45:00 +02:00
parent 2534be5b5d
commit d28351c5a4
2 changed files with 2 additions and 2 deletions

View File

@ -620,7 +620,7 @@ int iso_file_add_external_filter(IsoFile *file, IsoExternalFilterCommand *cmd,
if (cmd->behavior & (2 | 4)) {
original_size = iso_file_get_size(file);
if (original_size <= 0 ||
((cmd->behavior & 4) && original_size < 2048)) {
((cmd->behavior & 4) && original_size <= 2048)) {
return 2;
}
}

View File

@ -4714,7 +4714,7 @@ struct iso_external_filter_command
* bit2= Do not install filter if the number of output blocks is
* not smaller than the number of input blocks. Block size is 2048.
* Assume that non-empty input yields non-empty output and thus do
* not attempt to attach a filter to files smaller than 2048 bytes.
* not attempt to attach a filter to files smaller than 2049 bytes.
*/
int behavior;
};