File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ IOutputStream& OutputFile::addVideoStream(const VideoCodec& videoDesc)
42
42
stream.codec ->level = videoDesc.getAVCodecContext ().level ;
43
43
stream.codec ->field_order = videoDesc.getAVCodecContext ().field_order ;
44
44
45
+ stream.codec ->colorspace = videoDesc.getAVCodecContext ().colorspace ;
46
+ stream.codec ->color_primaries = videoDesc.getAVCodecContext ().color_primaries ;
47
+ stream.codec ->color_range = videoDesc.getAVCodecContext ().color_range ;
48
+ stream.codec ->color_trc = videoDesc.getAVCodecContext ().color_trc ;
49
+ stream.codec ->chroma_sample_location = videoDesc.getAVCodecContext ().chroma_sample_location ;
50
+
45
51
setOutputStream (stream, videoDesc);
46
52
47
53
// need to set the time_base on the AVCodecContext and the AVStream
You can’t perform that action at this time.
0 commit comments