Browse Source

libobs: Fix height return value condition

This should fix "Output fails" when Rescale Output height set to 0.
SuslikV 8 years ago
parent
commit
d4676e27dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/obs-encoder.c

+ 1 - 1
libobs/obs-encoder.c

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