summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2017-10-28 23:17:44 +0200
committerPaul B Mahol <onemda@gmail.com>2017-10-29 09:14:48 +0100
commit7da254886fbf39dc1bde9b3776f8cfbfcc471a7e (patch)
tree1bc888f34ef00e68df6465a9080661f8c1b94de6
parent073986c5aeb84e51b202f908d5ede059d371d57b (diff)
libavcodec/magicyuv : remove unneed variable assignment
-rw-r--r--libavcodec/magicyuv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index 3c1a89077b..195df121cd 100644
--- a/libavcodec/magicyuv.c
+++ b/libavcodec/magicyuv.c
@@ -280,11 +280,9 @@ static int magy_decode_slice10(AVCodecContext *avctx, void *tdata,
case GRADIENT:
dst = (uint16_t *)p->data[i] + j * sheight * stride;
s->llviddsp.add_left_pred_int16(dst, dst, max, width, 0);
- left = lefttop = 0;
dst += stride;
if (interlaced) {
s->llviddsp.add_left_pred_int16(dst, dst, max, width, 0);
- left = lefttop = 0;
dst += stride;
}
for (k = 1 + interlaced; k < height; k++) {
@@ -302,14 +300,13 @@ static int magy_decode_slice10(AVCodecContext *avctx, void *tdata,
break;
case MEDIAN:
dst = (uint16_t *)p->data[i] + j * sheight * stride;
- lefttop = left = dst[0];
s->llviddsp.add_left_pred_int16(dst, dst, max, width, 0);
dst += stride;
if (interlaced) {
- lefttop = left = dst[0];
s->llviddsp.add_left_pred_int16(dst, dst, max, width, 0);
dst += stride;
}
+ lefttop = left = dst[0];
for (k = 1 + interlaced; k < height; k++) {
magicyuv_median_pred16(dst, dst - fake_stride, dst, width, &left, &lefttop, max);
lefttop = left = dst[0];
@@ -411,11 +408,9 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
case GRADIENT:
dst = p->data[i] + j * sheight * stride;
s->llviddsp.add_left_pred(dst, dst, width, 0);
- left = lefttop = 0;
dst += stride;
if (interlaced) {
s->llviddsp.add_left_pred(dst, dst, width, 0);
- left = lefttop = 0;
dst += stride;
}
for (k = 1 + interlaced; k < height; k++) {
@@ -433,14 +428,13 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
break;
case MEDIAN:
dst = p->data[i] + j * sheight * stride;
- lefttop = left = dst[0];
s->llviddsp.add_left_pred(dst, dst, width, 0);
dst += stride;
if (interlaced) {
- lefttop = left = dst[0];
s->llviddsp.add_left_pred(dst, dst, width, 0);
dst += stride;
}
+ lefttop = left = dst[0];
for (k = 1 + interlaced; k < height; k++) {
s->llviddsp.add_median_pred(dst, dst - fake_stride,
dst, width, &left, &lefttop);