better decoder

improved handling of broken apng files