Adjustment of minimal size for a IsoExternalFilterCommand.behavior bit2 filter
This commit is contained in:
parent
2534be5b5d
commit
d28351c5a4
@ -620,7 +620,7 @@ int iso_file_add_external_filter(IsoFile *file, IsoExternalFilterCommand *cmd,
|
|||||||
if (cmd->behavior & (2 | 4)) {
|
if (cmd->behavior & (2 | 4)) {
|
||||||
original_size = iso_file_get_size(file);
|
original_size = iso_file_get_size(file);
|
||||||
if (original_size <= 0 ||
|
if (original_size <= 0 ||
|
||||||
((cmd->behavior & 4) && original_size < 2048)) {
|
((cmd->behavior & 4) && original_size <= 2048)) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4714,7 +4714,7 @@ struct iso_external_filter_command
|
|||||||
* bit2= Do not install filter if the number of output blocks is
|
* bit2= Do not install filter if the number of output blocks is
|
||||||
* not smaller than the number of input blocks. Block size is 2048.
|
* not smaller than the number of input blocks. Block size is 2048.
|
||||||
* Assume that non-empty input yields non-empty output and thus do
|
* 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;
|
int behavior;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user