Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2016-06-05 16:56:58 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2016-06-08 13:39:06 +0300
commiteea4b961d18672b416f1169d2f1d56c5995aacc0 (patch)
tree8efe33f6a4c1110afde758ba3c8dceacc695a553 /decoder
parentbb71e60a67aff17369c0625c606985366e812e94 (diff)
Initialize ptrdiff_t constant first and then do the shift instead casting the end result.
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/subtitles/blend/blend_generic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVVideo/subtitles/blend/blend_generic.cpp b/decoder/LAVVideo/subtitles/blend/blend_generic.cpp
index 4b4ab2d7..b62df017 100644
--- a/decoder/LAVVideo/subtitles/blend/blend_generic.cpp
+++ b/decoder/LAVVideo/subtitles/blend/blend_generic.cpp
@@ -125,7 +125,7 @@ DECLARE_BLEND_FUNC_IMPL(blend_yuv_c)
pixT *dstV = (pixT *)(v + (line + yPos) * outStrideUV) + xPos;
const BYTE *srcV = subV + line * inStrideUV;
- const BYTE *srcA = subA + (line * inStride * (ptrdiff_t)(1 << hsub));
+ const BYTE *srcA = subA + (line * inStride * (ptrdiff_t(1) << hsub));
for (col = 0; col < w; col++) {
// Average Alpha
int alpha;
@@ -165,7 +165,7 @@ DECLARE_BLEND_FUNC_IMPL(blend_yuv_c)
break;
}
}
- srcA += (ptrdiff_t)(1 << vsub);
+ srcA += ptrdiff_t(1) << vsub;
}
}