Fix videos with cropping metadata are probed as anamorphic (#15144)

This commit is contained in:
Nyanmisaka
2025-10-24 06:31:11 +08:00
committed by GitHub
parent a725220c21
commit 175ee12bbc

View File

@@ -930,6 +930,15 @@ namespace MediaBrowser.MediaEncoding.Probing
{
stream.Rotation = data.Rotation;
}
// Parse video frame cropping metadata from side_data
// TODO: save them and make HW filters to apply them in HWA pipelines
else if (string.Equals(data.SideDataType, "Frame Cropping", StringComparison.OrdinalIgnoreCase))
{
// Streams containing artificially added frame cropping
// metadata should not be marked as anamorphic.
stream.IsAnamorphic = false;
}
}
}