ducatividdec: delay flushing till the end of the codec processing