diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-12-24 10:59:26 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-12-24 10:59:26 +0100 |
commit | 68e5598e22b6b51cd796b55c4111ccd1638474d9 (patch) | |
tree | b5e8ad451a6d2ad2acfc3e86a8bd045aa095fad4 | |
parent | 6cedd20b97292acdbfc5a30decbaa9bd62f287f8 (diff) | |
download | ffmpeg-68e5598e22b6b51cd796b55c4111ccd1638474d9.tar.gz |
avcodec/utvideo: fix mistake using wrong arguments for left and lefttop pixel components
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/utvideodec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index cae0ff5f5c..23b8202030 100644 --- a/libavcodec/utvideodec.c +++ b/libavcodec/utvideodec.c @@ -414,7 +414,7 @@ static void restore_median_planar(UtvideoContext *c, uint8_t *src, int stride, // the rest of lines use continuous median prediction for (j = 2; j < slice_height; j++) { c->hdspdec.add_hfyu_median_pred(bsrc, bsrc - stride, - bsrc, width, &B, &C); + bsrc, width, &A, &B); bsrc += stride; } } @@ -462,14 +462,14 @@ static void restore_median_planar_il(UtvideoContext *c, uint8_t *src, int stride A = bsrc[i]; } c->hdspdec.add_hfyu_median_pred(bsrc + stride, bsrc - stride, - bsrc + stride, width, &B, &C); + bsrc + stride, width, &A, &B); bsrc += stride2; // the rest of lines use continuous median prediction for (j = 2; j < slice_height; j++) { 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, - bsrc + stride, width, &B, &C); + bsrc + stride, width, &A, &B); bsrc += stride2; } } |