change encode_10bit → bit-depth

This commit is contained in:
galister
2025-07-11 23:09:37 +02:00
committed by xytovl
parent ed32676299
commit ec42db83bc
10 changed files with 66 additions and 50 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ video_encoder_x264::video_encoder_x264(
uint8_t stream_idx) :
video_encoder(stream_idx, settings.channels, settings.bitrate_multiplier, false)
{
if (settings.use_10bit)
throw std::runtime_error("x264 encoder does not support 10-bit encoding");
if (settings.bit_depth != 8)
throw std::runtime_error("x264 encoder only supports 8-bit encoding");
if (settings.codec != h264)
{