- /* Write all data in the buffer to the disk together with any
- * additional space at the end of the buffer up to the first
- * multiple of BLOCK_SIZE. The last block is always written to the
- * disk despite not being fully filled. If the last block is not
- * fully filled, we keep it (moved to the begginig of the buffer)
- * and any subsequent call to this function will rewrite the block
- * together with the additional data added to the buffer. */
- size_t to_write = (data_len + BLOCK_SIZE - 1) & ~(BLOCK_SIZE - 1);
- size_t whole_blocks = data_len & ~(BLOCK_SIZE - 1);
- int64_t res = AVERROR(EPIPE);