Commit 70add6c1 authored by David Reid's avatar David Reid

Fix an infinite loop when decoding via the resource manager.

parent 24495afe
...@@ -6840,7 +6840,7 @@ static ma_result ma_resource_manager_data_buffer_node_decode_next_page(ma_resour ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment