X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=x264_encoder.cpp;h=8463d1bae285744a420aa47a1155504eb3f07b00;hb=6ffaabac0a523617b686f40c154a25cb548cc561;hp=66c06344f4ce7710919241be4d9dd9e7d449b60c;hpb=982a1d295c56f0398d69263947b50475aee64b34;p=nageru diff --git a/x264_encoder.cpp b/x264_encoder.cpp index 66c0634..8463d1b 100644 --- a/x264_encoder.cpp +++ b/x264_encoder.cpp @@ -150,6 +150,9 @@ void X264Encoder::init_x264() if (global_flags.x264_speedcontrol) { param.i_frame_reference = 16; // Because speedcontrol is never allowed to change this above what we set at start. } +#if X264_BUILD >= 153 + param.i_bitdepth = global_flags.x264_bit_depth; +#endif // NOTE: These should be in sync with the ones in quicksync_encoder.cpp (sps_rbsp()). param.vui.i_vidformat = 5; // Unspecified.