X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mux.cpp;h=cfe38b63a67041eb2a6f0f3b7cb0b1cec945f490;hb=eedf61e845d7f5aab0ec8ce79efd19d6bfe686f2;hp=f52f795029c7ff3fd30daff5126244919de56def;hpb=d58634eed0ef4a32b6d45081bcfb85aba1f3f379;p=nageru diff --git a/mux.cpp b/mux.cpp index f52f795..cfe38b6 100644 --- a/mux.cpp +++ b/mux.cpp @@ -75,7 +75,7 @@ Mux::Mux(AVFormatContext *avctx, int width, int height, Codec video_codec, const // Note that there's no way to change this per-frame as the H.264 stream // would like to be able to. avstream_video->codecpar->color_primaries = AVCOL_PRI_BT709; // RGB colorspace (inout_format.color_space). - avstream_video->codecpar->color_trc = AVCOL_TRC_UNSPECIFIED; // Gamma curve (inout_format.gamma_curve). + avstream_video->codecpar->color_trc = AVCOL_TRC_IEC61966_2_1; // Gamma curve (inout_format.gamma_curve). // YUV colorspace (output_ycbcr_format.luma_coefficients). if (global_flags.ycbcr_rec709_coefficients) { avstream_video->codecpar->color_space = AVCOL_SPC_BT709;