Skip to content

Commit feb9c39

Browse files
authored
Run clang-format on all IsoLib/t35_tool files (#67)
Add check in .github/workflows/clang-format.yml.
1 parent 43b103f commit feb9c39

21 files changed

+4973
-4084
lines changed

.github/workflows/clang-format.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ jobs:
1515
sudo ./llvm.sh 18
1616
sudo apt-get install -y clang-format-18
1717
18-
- name: Run clang-format check
18+
- name: Run clang-format check on IsoLib/libisomediafile
1919
run: |
2020
find IsoLib/libisomediafile \( -name "*.h" -o -name "*.cpp" -o -name "*.c" \) | \
2121
xargs clang-format-18 --dry-run --Werror -style=file
22+
23+
- name: Run clang-format check on IsoLib/t35_tool
24+
run: |
25+
find IsoLib/t35_tool \( -name "*.h" -o -name "*.cpp" -o -name "*.c" \) | \
26+
xargs clang-format-18 --dry-run --Werror -style=file

IsoLib/libisomediafile/src/T35MetadataSampleEntry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static MP4Err createFromInputStream(MP4AtomPtr s, MP4AtomPtr proto, MP4InputStre
146146
}
147147

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

0 commit comments

Comments
 (0)