zhifu gao
2025-04-22 2c2fb5e1eb1185a081e3507c2aa5c3aafaa2bb6d
runtime/onnxruntime/src/audio.cpp
@@ -1061,8 +1061,9 @@
    #ifdef USE_GPU
        max_batch = batch_size;
    #endif
    max_batch = std::min(max_batch, (int)frame_queue.size());
    for(int idx=0; idx < std::min(max_batch, (int)frame_queue.size()); idx++){
    for(int idx=0; idx < max_batch; idx++){
        AudioFrame *frame = frame_queue.front();
        int length = frame->GetLen();
        if(length >= max_sent){