Skip to content

Commit a3054dc

Browse files
lint
1 parent 1e0099a commit a3054dc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

torchvision/csrc/io/image/cpu/decode_gif.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ torch::Tensor decode_gif(const torch::Tensor& encoded_data) {
128128
// (https://giflib.sourceforge.net/whatsinagif/animation_and_transparency.html).
129129
// This is consistent with default behaviour in the majority of web browsers
130130
// and image libraries like Pillow.
131-
if (i > 0 && (gcb.DisposalMode == DISPOSAL_UNSPECIFIED ||
132-
gcb.DisposalMode == DISPOSE_DO_NOT ||
133-
gcb.DisposalMode == DISPOSE_PREVIOUS)) {
131+
if (i > 0 &&
132+
(gcb.DisposalMode == DISPOSAL_UNSPECIFIED ||
133+
gcb.DisposalMode == DISPOSE_DO_NOT ||
134+
gcb.DisposalMode == DISPOSE_PREVIOUS)) {
134135
out[i] = out[i - 1];
135136
} else {
136137
// Background. If bg wasn't defined, it will be (0, 0, 0)

0 commit comments

Comments
 (0)