aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/prosumer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-09-22 18:14:01 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-09-24 00:49:30 +0200
commitfa1d3caef0cbe24d2e74e3410495344c5aee9776 (patch)
tree289856f13e39a4143b7eadc20a11616b6f3cef5f /libavcodec/prosumer.c
parente97951f458a51417ca1798d23890d1ea9a3537dd (diff)
downloadffmpeg-fa1d3caef0cbe24d2e74e3410495344c5aee9776.tar.gz
avcodec/prosumer: factorize e0 setting out
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c
index 399350031a..9e8a94d4db 100644
--- a/libavcodec/prosumer.c
+++ b/libavcodec/prosumer.c
@@ -290,14 +290,13 @@ static void fill_elements(uint32_t idx, uint32_t shift, int size, uint32_t *e0,
if (table[2 * i] >> 8 == 0x80u) {
return;
} else {
+ *e0 = (*e0 & 0xFFFFFFu) | (((12 + b - shift) | (0x40u<<j)) << 22);
if (j == 0) {
*e1 = table[2 * i];
- *e0 = (*e0 & 0xFFFFFFu) | (((12 + b - shift) & 0xFFFFFFFCu | 0x40u) << 22);
shift -= b;
h <<= b;
} else {
*e1 |= (unsigned)table[2 * i] << 16;
- *e0 = (*e0 & 0xFFFFFFu) | (((12 + b - shift) & 0xFFFFFFFCu | 0x80u) << 22);
}
break;
}