Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:
sudo ./llvm.sh 18
sudo apt-get install -y clang-format-18

- name: Run clang-format check
- name: Run clang-format check on IsoLib/libisomediafile
run: |
find IsoLib/libisomediafile \( -name "*.h" -o -name "*.cpp" -o -name "*.c" \) | \
xargs clang-format-18 --dry-run --Werror -style=file

- name: Run clang-format check on IsoLib/t35_tool
run: |
find IsoLib/t35_tool \( -name "*.h" -o -name "*.cpp" -o -name "*.c" \) | \
xargs clang-format-18 --dry-run --Werror -style=file
2 changes: 1 addition & 1 deletion IsoLib/libisomediafile/src/T35MetadataSampleEntry.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static MP4Err createFromInputStream(MP4AtomPtr s, MP4AtomPtr proto, MP4InputStre
}

/* Description: bytes [0 .. nullPos] (including the null terminator) */
u32 descLen = nullPos + 1; /* length including null */
u32 descLen = nullPos + 1; /* length including null */
self->description = (char *)calloc(descLen, 1);
TESTMALLOC(self->description);
memcpy(self->description, buf, descLen);
Expand Down
Loading
Loading