This repository was archived by the owner on Nov 6, 2025. It is now read-only.
Commit 218ae90
committed
Do not try to have a "perfect" scale factor in webrtc::VideoAdapter
Without this change, webrtc::VideoAdapter tries to have a scale factor
which can be represented in an easy fraction. That behavior requires
the cropped image to be aligned with scale fraction denominator multiplied
with the output alignment requirement, which can be much larger for
relatively large output alignment requirement.
The behavior does not seem to be required by any implementation so just
abandon it to avoid such a large alignment requirement.1 parent c3b602c commit 218ae90
1 file changed
+14
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
| |||
0 commit comments