avcodec/exrenc: Allow user-supplied buffers