[FFmpeg-cvslog] avcodec/magicyuvenc: use last slice height when correlating

Paul B Mahol git at videolan.org
Sun Sep 10 14:49:09 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 10 13:46:57 2023 +0200| [c6f0fd2dcdb02f0894f143ae3ef0e2029200953a] | committer: Paul B Mahol

avcodec/magicyuvenc: use last slice height when correlating

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6f0fd2dcdb02f0894f143ae3ef0e2029200953a
---

 libavcodec/magicyuvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c
index 427d4848e6..432a875a0a 100644
--- a/libavcodec/magicyuvenc.c
+++ b/libavcodec/magicyuvenc.c
@@ -495,7 +495,7 @@ static int predict_slice(AVCodecContext *avctx, void *tdata,
         b = frame->data[1] + n * slice_height * frame->linesize[1];
         r = frame->data[2] + n * slice_height * frame->linesize[2];
 
-        for (int i = 0; i < slice_height; i++) {
+        for (int i = 0; i < height; i++) {
             s->llvidencdsp.diff_bytes(decorrelated[0], b, g, width);
             s->llvidencdsp.diff_bytes(decorrelated[1], r, g, width);
             g += frame->linesize[0];



More information about the ffmpeg-cvslog mailing list