File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
torchvision/csrc/io/image/cpu Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments