In thenc, flush stdio buffers each time we feed the encoder a frame.