mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
avcodec/utvideo: fix mistake using wrong arguments for left and lefttop pixel components
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6cedd20b97
commit
68e5598e22
@ -414,7 +414,7 @@ static void restore_median_planar(UtvideoContext *c, uint8_t *src, int stride,
|
|||||||
// the rest of lines use continuous median prediction
|
// the rest of lines use continuous median prediction
|
||||||
for (j = 2; j < slice_height; j++) {
|
for (j = 2; j < slice_height; j++) {
|
||||||
c->hdspdec.add_hfyu_median_pred(bsrc, bsrc - stride,
|
c->hdspdec.add_hfyu_median_pred(bsrc, bsrc - stride,
|
||||||
bsrc, width, &B, &C);
|
bsrc, width, &A, &B);
|
||||||
bsrc += stride;
|
bsrc += stride;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -462,14 +462,14 @@ static void restore_median_planar_il(UtvideoContext *c, uint8_t *src, int stride
|
|||||||
A = bsrc[i];
|
A = bsrc[i];
|
||||||
}
|
}
|
||||||
c->hdspdec.add_hfyu_median_pred(bsrc + stride, bsrc - stride,
|
c->hdspdec.add_hfyu_median_pred(bsrc + stride, bsrc - stride,
|
||||||
bsrc + stride, width, &B, &C);
|
bsrc + stride, width, &A, &B);
|
||||||
bsrc += stride2;
|
bsrc += stride2;
|
||||||
// the rest of lines use continuous median prediction
|
// the rest of lines use continuous median prediction
|
||||||
for (j = 2; j < slice_height; j++) {
|
for (j = 2; j < slice_height; j++) {
|
||||||
c->hdspdec.add_hfyu_median_pred(bsrc, bsrc - stride2,
|
c->hdspdec.add_hfyu_median_pred(bsrc, bsrc - stride2,
|
||||||
bsrc, width, &B, &C);
|
bsrc, width, &A, &B);
|
||||||
c->hdspdec.add_hfyu_median_pred(bsrc + stride, bsrc - stride,
|
c->hdspdec.add_hfyu_median_pred(bsrc + stride, bsrc - stride,
|
||||||
bsrc + stride, width, &B, &C);
|
bsrc + stride, width, &A, &B);
|
||||||
bsrc += stride2;
|
bsrc += stride2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user