mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Fix an infinite loop when decoding via the resource manager.
This commit is contained in:
@@ -6840,7 +6840,7 @@ static ma_result ma_resource_manager_data_buffer_node_decode_next_page(ma_resour
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == MA_SUCCESS && framesRead < framesToTryReading) {
|
if (result == MA_SUCCESS && (framesRead < framesToTryReading || framesRead == 0)) {
|
||||||
result = MA_AT_END;
|
result = MA_AT_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user