call AVCodec.flush() for audio too