Skip to content

Commit 511afca

Browse files
committed
MP4 : Test cases explicitly detect 1x1 chapter picture from ATL
1 parent 2ab3699 commit 511afca

File tree

1 file changed

+2
-2
lines changed
  • ATL.unit-test/IO/MetaData

1 file changed

+2
-2
lines changed

ATL.unit-test/IO/MetaData/MP4.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ public void TagIO_RW_MP4_AddChap2Image_then_RemoveTag()
15881588
System.Console.WriteLine("Chapters(2) Image: " + (track.Chapters[1].Picture != null));
15891589

15901590
//Switch these Assertions for expected editing.
1591-
Assert.IsTrue(track.Chapters[0].Picture != null);
1591+
Assert.IsTrue(track.Chapters[0].Picture != null && 734 == track.Chapters[0].Picture.PictureData.Length); // 1x1 default pic from ATL
15921592
Assert.IsTrue(track.Chapters[1].Picture != null);
15931593

15941594
System.Console.WriteLine("# Remove Tags #");
@@ -1880,7 +1880,7 @@ public void TagIO_RW_MP4_RemoveTag_AddMetaAndChap2Images_RemoveTag()
18801880
Assert.AreEqual($"New Album", track.Album, "Album should be the same.");
18811881
Assert.AreEqual($"New Chap0", track.Chapters[0].Title, "Chapter0 Title should be the same.");
18821882
Assert.AreEqual($"New Chap1", track.Chapters[1].Title, "Chapter1 should be the same.");
1883-
Assert.IsTrue(track.Chapters[0].Picture != null);
1883+
Assert.IsTrue(track.Chapters[0].Picture != null && 734 == track.Chapters[0].Picture.PictureData.Length); // 1x1 default pic from ATL
18841884
Assert.IsTrue(track.Chapters[1].Picture != null);
18851885

18861886
//3. Remove Tag first

0 commit comments

Comments
 (0)