From f83c6fafd8448ead2db543681b30df19b263159d Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Fri, 24 Jul 2026 15:07:39 -0500 Subject: [PATCH] feat: remove radeonsi hevc_vaapi workaround; ffmpeg 8.1.2 is fixed --- crates/ffpipeline/src/accel/vaapi.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/ffpipeline/src/accel/vaapi.rs b/crates/ffpipeline/src/accel/vaapi.rs index a133b9f..cf1da60 100644 --- a/crates/ffpipeline/src/accel/vaapi.rs +++ b/crates/ffpipeline/src/accel/vaapi.rs @@ -197,7 +197,7 @@ impl HwAccel for Vaapi { &self, format: &VideoFormat, bit_depth: u8, - video_size: Option, + _video_size: Option, ) -> Option { let force_cqp = self.capabilities.rate_control_mode_for(format, bit_depth) == Some(RateControlMode::Cqp); @@ -224,14 +224,6 @@ impl HwAccel for Vaapi { options.extend(args!["-rc_mode", "1"]); } - // WORKAROUND: RadeonSI doesn't always output appropriate crop - // metadata with HEVC encoder; it doesn't hurt anything to always specify - if self.driver == VaapiDriver::RadeonSI - && video_size.map(|s| s.height) == Some(1080) - { - options.extend(args!["-bsf:v", "hevc_metadata=crop_bottom=8"]); - } - Some(VideoCodec { codec_name: "hevc_vaapi", options,