Selaa lähdekoodia

Add tests for the video rotation side data

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
nyanmisaka 1 vuosi sitten
vanhempi
sitoutus
6076462ff5

+ 1 - 0
tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs

@@ -84,6 +84,7 @@ namespace Jellyfin.MediaEncoding.Tests.Probing
             Assert.Equal(0, res.VideoStream.ElPresentFlag);
             Assert.Equal(1, res.VideoStream.BlPresentFlag);
             Assert.Equal(0, res.VideoStream.DvBlSignalCompatibilityId);
+            Assert.Equal(-180, res.VideoStream.Rotation);
 
             var audio1 = res.MediaStreams[1];
             Assert.Equal("eac3", audio1.Codec);

+ 4 - 0
tests/Jellyfin.MediaEncoding.Tests/Test Data/Probing/video_metadata.json

@@ -59,6 +59,10 @@
                     "el_present_flag": 0,
                     "bl_present_flag": 1,
                     "dv_bl_signal_compatibility_id": 0
+                },
+                {
+                    "side_data_type": "Display Matrix",
+                    "rotation": -180
                 }
             ]
         },