Wait for decoding to complete in Flush() and Drain().