class CopyDataCommandHandler implements ICommandHandler {

    @Override
    public void handle() {
        Frame encoderFrame = input.findFreeFrame();
        if (encoderFrame == null) {
            restoreCommands();
            return;
        }

        Frame decoderFrame = output.getFrame();
        if (decoderFrame == null) return;

        encoderFrame.copyDataFrom(decoderFrame);
        input.push(encoderFrame);

        output.releaseOutputBuffer(decoderFrame.getBufferIndex());
    }

    public  CopyDataCommandHandler(IPluginOutput output, MediaCodecPlugin input);

}