Fix an infinite loop when decoding via the resource manager.

This commit is contained in:
David Reid
2021-06-07 18:45:52 +10:00
parent 24495afeaa
commit 70add6c146
+1 -1
View File
@@ -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;
}