Commit a82618b
committed
dp: use 64bit integers for period calculation
for some huge bitrates there was an overflow in 32bit
numbers in period calculations, i.e:
dev->period = 1000000 * sink_get_min_free_space(sink)
for 192000-32-7 format it was 5824000000, more than maxint32bit
Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>1 parent 73366d9 commit a82618b
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | | - | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
0 commit comments