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,