]> git.sesse.net Git - nageru/blobdiff - x264_encoder.cpp
Support x264 >= 153.
[nageru] / x264_encoder.cpp
index 66c06344f4ce7710919241be4d9dd9e7d449b60c..8463d1bae285744a420aa47a1155504eb3f07b00 100644 (file)
@@ -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.