浏览代码

libobs/media-io: Add color range and space to conversion

By adding the range data we can get successful handling of full range
color via custom FFmpeg output. Previously it would always default to 0
which would yield partial/limited output. Without the colorspace info
the output file is correctly tagged, but not undergone the actual
conversion.
Chris (Flaeri) 2 年之前
父节点
当前提交
0eb496e8cf
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libobs/media-io/video-io.c

+ 2 - 0
libobs/media-io/video-io.c

@@ -392,6 +392,8 @@ bool video_output_connect(
 			input.conversion.format = video->info.format;
 			input.conversion.format = video->info.format;
 			input.conversion.width = video->info.width;
 			input.conversion.width = video->info.width;
 			input.conversion.height = video->info.height;
 			input.conversion.height = video->info.height;
+			input.conversion.range = video->info.range;
+			input.conversion.colorspace = video->info.colorspace;
 		}
 		}
 
 
 		if (input.conversion.width == 0)
 		if (input.conversion.width == 0)