Merge pull request #1080 from SuslikV/patch-1

libobs: Fix height return value condition
This commit is contained in:
Jim 2017-11-27 05:29:19 -08:00 committed by GitHub
commit 51b226654f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -611,7 +611,7 @@ uint32_t obs_encoder_get_height(const obs_encoder_t *encoder)
if (!encoder->media)
return 0;
return encoder->scaled_width != 0 ?
return encoder->scaled_height != 0 ?
encoder->scaled_height :
video_output_get_height(encoder->media);
}