File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
torchvision/csrc/cpu/decoder Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ bool SeekableBuffer::readBytes(
55
55
size_t maxBytes,
56
56
uint64_t timeoutMs) {
57
57
// Resize to th minimum 4K page or less
58
- buffer_.resize (std::min (maxBytes, 4 * 1024UL ));
58
+ buffer_.resize (std::min (maxBytes, size_t ( 4 * 1024UL ) ));
59
59
end_ = 0 ;
60
60
eof_ = false ;
61
61
@@ -72,7 +72,7 @@ bool SeekableBuffer::readBytes(
72
72
if (res > 0 ) {
73
73
end_ += res;
74
74
if (end_ == buffer_.size ()) {
75
- buffer_.resize (std::min (end_ * 4UL , maxBytes));
75
+ buffer_.resize (std::min (size_t ( end_ * 4UL ) , maxBytes));
76
76
}
77
77
} else if (res == 0 ) {
78
78
eof_ = true ;
Original file line number Diff line number Diff line change @@ -395,8 +395,8 @@ void setFormatDimensions(
395
395
}
396
396
}
397
397
// prevent zeros
398
- destW = std::max (destW, 1UL );
399
- destH = std::max (destH, 1UL );
398
+ destW = std::max (destW, size_t ( 1UL ) );
399
+ destH = std::max (destH, size_t ( 1UL ) );
400
400
}
401
401
} // namespace Util
402
402
} // namespace ffmpeg
You can’t perform that action at this time.
0 commit comments