UI: Fix encoder rescaling for streaming
The "rescale" option for streaming in the advanced output settings was not properly checking the parameter output of sscanf. sscanf returns the number of values that were found, not the number of string matches.
This commit is contained in:
parent
99c674e41f
commit
bd78db91e9
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ inline void AdvancedOutput::SetupStreaming()
|
|||
unsigned int cx = 0;
|
||||
unsigned int cy = 0;
|
||||
|
||||
if (rescale && sscanf(rescaleRes, "%ux%u", &cx, &cy) != 3) {
|
||||
if (rescale && sscanf(rescaleRes, "%ux%u", &cx, &cy) != 2) {
|
||||
cx = 0;
|
||||
cy = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue