Commit aeaeff2
Fix infinite loop in mix_source_buffer() in case of uneven input buffer
This fixes a potential infinite loop, which may occur in two cases:
1. If remaining data in the input is less than `bufferframesize`, in such case `bytesput` resulted in 0, and src->offset never advanced.
2. If remaining data's size is not evenly divided by sizeof(float), the data pointer again will not advance to the end.1 parent fd7e70a commit aeaeff2
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
1435 | | - | |
1436 | | - | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
1437 | 1439 | | |
1438 | 1440 | | |
1439 | 1441 | | |
1440 | | - | |
| 1442 | + | |
| 1443 | + | |
1441 | 1444 | | |
1442 | 1445 | | |
1443 | 1446 | | |
| |||
0 commit comments