Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Feb 5, 2024
1 parent 117b55a commit 9794c7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions MetadataExtractor/Formats/Heif/HeifMetadataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ public static IReadOnlyList<Directory> ReadMetadata(Stream stream)
ParseQuickTimeTest();

uint primaryItem = boxes.Descendant<PrimaryItemBox>()?.PrimaryItem ?? uint.MaxValue;
var itemRefs = (boxes.Descendant<ItemReferenceBox>()?.Boxes ?? new SingleItemTypeReferenceBox[0])
.Where(i => i.Type is BoxTypes.ThmbTag or BoxTypes.CdscTag or BoxTypes.MimeTag).ToList();
var itemRefs = (boxes.Descendant<ItemReferenceBox>()?.Boxes ?? Array.Empty<SingleItemTypeReferenceBox>())
.Where(i => i.Type is BoxTypes.ThmbTag or BoxTypes.CdscTag or BoxTypes.MimeTag)
.ToList();

ParseImageProperties();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace MetadataExtractor.Formats.QuickTime
/// <author>Dmitry Shechtman</author>
internal sealed class QuickTimeTypeChecker : ITypeChecker
{
private static readonly ByteTrie<Util.FileType> _ftypTrie = new(Util.FileType.QuickTime)
private static readonly ByteTrie<Util.FileType> _ftypTrie = new(defaultValue: Util.FileType.QuickTime)
{
// http://www.ftyps.com

Expand Down

0 comments on commit 9794c7c

Please sign in to comment.