Skip to content

Commit e5ccb69

Browse files
kevinbackhousemergify[bot]
authored andcommitted
Replace magic numbers with size_t in quicktimevideo.cpp
(cherry picked from commit 6aef39d)
1 parent 74c9e8b commit e5ccb69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/quicktimevideo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,10 +1135,10 @@ void QuickTimeVideo::setMediaStream(size_t atom_size) {
11351135
search_end = io_->size();
11361136
DataBuf buf(4 + 1);
11371137

1138-
while (!io_->eof() && Safe::add(io_->tell(), 4) <= search_end) {
1138+
while (!io_->eof() && Safe::add(io_->tell(), size_t{4}) <= search_end) {
11391139
io_->readOrThrow(buf.data(), 4);
11401140
if (equalsQTimeTag(buf, "hdlr")) {
1141-
if (Safe::add(io_->tell(), 12) > search_end)
1141+
if (Safe::add(io_->tell(), size_t{12}) > search_end)
11421142
break;
11431143
io_->readOrThrow(buf.data(), 4);
11441144
io_->readOrThrow(buf.data(), 4);

0 commit comments

Comments
 (0)