aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/prosumer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-09-22 18:14:05 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-09-24 00:49:30 +0200
commit52b909b5c1b4c04f4474f087ff1bff90ca40f892 (patch)
tree90e606bc5dc89253113c4ab0f00948813b56d27d /libavcodec/prosumer.c
parent093607f0cd64b7c67f6ac2dfc2b453a20123a6e8 (diff)
downloadffmpeg-52b909b5c1b4c04f4474f087ff1bff90ca40f892.tar.gz
avcodec/prosumer: remove unneeded variable from vertical_predict
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/prosumer.c')
-rw-r--r--libavcodec/prosumer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c
index 575b00baca..0fa0109950 100644
--- a/libavcodec/prosumer.c
+++ b/libavcodec/prosumer.c
@@ -134,13 +134,11 @@ static int decompress(GetByteContext *gb, int size, PutByteContext *pb, const ui
static void vertical_predict(uint32_t *dst, int offset, const uint32_t *src, int stride, int height)
{
- uint32_t x = (0x7F7F7F7F >> 1) & 0x7F7F7F7F;
-
dst += offset >> 2;
for (int i = 0; i < height; i++) {
for (int j = 0; j < stride >> 2; j++) {
- dst[j] = (((src[j] >> 3) + (x & dst[j])) << 3) & 0xFCFCFCFC;
+ dst[j] = (((src[j] >> 3) + (0x3F3F3F3F & dst[j])) << 3) & 0xFCFCFCFC;
}
dst += stride >> 2;