avcodec/jpeg2000dec: account two last bytes from end of bytestream as EOC marker