Add tests for the video rotation side data

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka 2024-03-30 04:37:01 +08:00
parent 5967d26228
commit 6076462ff5
2 changed files with 5 additions and 0 deletions

View File

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

View File

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