Răsfoiți Sursa

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 ani în urmă
părinte
comite
0eb496e8cf
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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)