瀏覽代碼

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

Nyanmisaka 1 月之前
父節點
當前提交
175ee12bbc
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

+ 9 - 0
MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

@@ -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;
+                        }
                     }
                 }