avcodec/wmalosslessdec: fix data flushing at the end