aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-14 22:10:08 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-14 23:49:52 +0100
commitfc2588a1d6cbb17f15e05f585c92a3be734bcc5a (patch)
tree6ddd17d16a63bc6f6b9fb575896f05f730b31033 /libswscale
parent3a0e5cfcee5bcbf60e3830da0d03041de3f1e5f5 (diff)
downloadffmpeg-fc2588a1d6cbb17f15e05f585c92a3be734bcc5a.tar.gz
swscale/vscale: Use matching sliceY/chrSliceY for luma/chroma
No case known where that makes a difference Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/vscale.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libswscale/vscale.c b/libswscale/vscale.c
index 308a0800e1..39e1eec9bb 100644
--- a/libswscale/vscale.c
+++ b/libswscale/vscale.c
@@ -109,7 +109,7 @@ static int packed_vscale(SwsContext *c, SwsFilterDescriptor *desc, int sliceY, i
uint16_t *lum_filter = inst[0].filter[0];
uint16_t *chr_filter = inst[1].filter[0];
- int firstLum = FFMAX(1-lum_fsize, inst[0].filter_pos[chrSliceY]);
+ int firstLum = FFMAX(1-lum_fsize, inst[0].filter_pos[ sliceY]);
int firstChr = FFMAX(1-chr_fsize, inst[1].filter_pos[chrSliceY]);
int sp0 = firstLum - desc->src->plane[0].sliceY;
@@ -128,9 +128,9 @@ static int packed_vscale(SwsContext *c, SwsFilterDescriptor *desc, int sliceY, i
((yuv2packed1_fn)inst->pfn)(c, (const int16_t*)*src0, (const int16_t**)src1, (const int16_t**)src2,
(const int16_t*)(desc->alpha ? *src3 : NULL), *dst, dstW, 0, sliceY);
} else if (c->yuv2packed1 && lum_fsize == 1 && chr_fsize == 2 &&
- chr_filter[2 * sliceY + 1] + chr_filter[2 * chrSliceY] == 4096 &&
- chr_filter[2 * sliceY + 1] <= 4096U) { // unscaled RGB
- int chrAlpha = chr_filter[2 * sliceY + 1];
+ chr_filter[2 * chrSliceY + 1] + chr_filter[2 * chrSliceY] == 4096 &&
+ chr_filter[2 * chrSliceY + 1] <= 4096U) { // unscaled RGB
+ int chrAlpha = chr_filter[2 * chrSliceY + 1];
((yuv2packed1_fn)inst->pfn)(c, (const int16_t*)*src0, (const int16_t**)src1, (const int16_t**)src2,
(const int16_t*)(desc->alpha ? *src3 : NULL), *dst, dstW, chrAlpha, sliceY);
} else if (c->yuv2packed2 && lum_fsize == 2 && chr_fsize == 2 &&
@@ -140,7 +140,7 @@ static int packed_vscale(SwsContext *c, SwsFilterDescriptor *desc, int sliceY, i
chr_filter[2 * chrSliceY + 1] <= 4096U
) { // bilinear upscale RGB
int lumAlpha = lum_filter[2 * sliceY + 1];
- int chrAlpha = chr_filter[2 * sliceY + 1];
+ int chrAlpha = chr_filter[2 * chrSliceY + 1];
c->lumMmxFilter[2] =
c->lumMmxFilter[3] = lum_filter[2 * sliceY] * 0x10001;
c->chrMmxFilter[2] =
@@ -156,7 +156,7 @@ static int packed_vscale(SwsContext *c, SwsFilterDescriptor *desc, int sliceY, i
}
inst->yuv2packedX(c, lum_filter + sliceY * lum_fsize,
- (const int16_t**)src0, lum_fsize, chr_filter + sliceY * chr_fsize,
+ (const int16_t**)src0, lum_fsize, chr_filter + chrSliceY * chr_fsize,
(const int16_t**)src1, (const int16_t**)src2, chr_fsize, (const int16_t**)src3, *dst, dstW, sliceY);
}
return 1;
@@ -173,7 +173,7 @@ static int any_vscale(SwsContext *c, SwsFilterDescriptor *desc, int sliceY, int
uint16_t *lum_filter = inst[0].filter[0];
uint16_t *chr_filter = inst[1].filter[0];
- int firstLum = FFMAX(1-lum_fsize, inst[0].filter_pos[chrSliceY]);
+ int firstLum = FFMAX(1-lum_fsize, inst[0].filter_pos[ sliceY]);
int firstChr = FFMAX(1-chr_fsize, inst[1].filter_pos[chrSliceY]);
int sp0 = firstLum - desc->src->plane[0].sliceY;