Adjustment of minimal size for a IsoExternalFilterCommand.behavior bit2 filter

release-1.5.4.branch
Thomas Schmitt 14 years ago
parent 2534be5b5d
commit d28351c5a4
  1. 2
      libisofs/filters/external.c
  2. 2
      libisofs/libisofs.h

@ -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;
}
}

@ -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;
};

Loading…
Cancel
Save