Explorar o código

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) %!s(int64=2) %!d(string=hai) anos
pai
achega
0eb496e8cf
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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.width = video->info.width;
 			input.conversion.height = video->info.height;
+			input.conversion.range = video->info.range;
+			input.conversion.colorspace = video->info.colorspace;
 		}
 
 		if (input.conversion.width == 0)