Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions crates/ffpipeline/src/accel/vaapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl HwAccel for Vaapi {
&self,
format: &VideoFormat,
bit_depth: u8,
video_size: Option<FrameSize>,
_video_size: Option<FrameSize>,
) -> Option<VideoCodec> {
let force_cqp = self.capabilities.rate_control_mode_for(format, bit_depth)
== Some(RateControlMode::Cqp);
Expand All @@ -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,
Expand Down