fix: make sure the dimension is divisible by two for zscale (#11185)

pull/10826/head^2
gnattu 2 months ago committed by GitHub
parent 7a2c3b0710
commit bf285a572d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -691,7 +691,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
Video3DFormat.HalfTopAndBottom => @"crop=iw:ih/2:0:0,scale=(iw*2):ih),setdar=dar=a,crop=min(iw\,ih*dar):min(ih\,iw/dar):(iw-min(iw\,iw*sar))/2:(ih - min (ih\,ih/sar))/2,setsar=sar=1",
// ftab crop height in half, set the display aspect,crop out any black bars we may have made
Video3DFormat.FullTopAndBottom => @"crop=iw:ih/2:0:0,setdar=dar=a,crop=min(iw\,ih*dar):min(ih\,iw/dar):(iw-min(iw\,iw*sar))/2:(ih - min (ih\,ih/sar))/2,setsar=sar=1",
_ => "scale=trunc(iw*sar):ih"
_ => "scale=round(iw*dar/2)*2:round(ih/2)*2"
};
filters.Add(scaler);

Loading…
Cancel
Save