now that it's landed I think you can remove this protection (but still keep this code in case even a "quality == 0" encoding is not enough)