Use P010 instead of YUV420P10 for 10-bit VAAPI encoding

This commit is contained in:
Cameron Gutman
2024-01-02 21:33:32 -06:00
parent beb51cc925
commit a9b459cdb1
+1 -1
View File
@@ -884,7 +884,7 @@ namespace video {
std::make_unique<encoder_platform_formats_avcodec>( std::make_unique<encoder_platform_formats_avcodec>(
AV_HWDEVICE_TYPE_VAAPI, AV_HWDEVICE_TYPE_NONE, AV_HWDEVICE_TYPE_VAAPI, AV_HWDEVICE_TYPE_NONE,
AV_PIX_FMT_VAAPI, AV_PIX_FMT_VAAPI,
AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P10, AV_PIX_FMT_NV12, AV_PIX_FMT_P010,
vaapi_init_avcodec_hardware_input_buffer), vaapi_init_avcodec_hardware_input_buffer),
{ {
// Common options // Common options