[FFmpeg-devel] [PATCH] lavfi/cas: fix the wrong source linesize

Zhong Li zhongli_dev at 126.com
Sun Apr 11 17:53:49 EEST 2021


Signed-off-by: Zhong Li <zhongli_dev at 126.com>
---
 libavfilter/vf_cas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_cas.c b/libavfilter/vf_cas.c
index 7c32ed5f9b..b44a100421 100644
--- a/libavfilter/vf_cas.c
+++ b/libavfilter/vf_cas.c
@@ -65,7 +65,7 @@ static int cas_slice8(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs)
         const uint8_t *src = in->data[p];
 
         if (!((1 << p) & s->planes)) {
-            av_image_copy_plane(dst, linesize, src + slice_start * linesize, in_linesize,
+            av_image_copy_plane(dst, linesize, src + slice_start * in_linesize, in_linesize,
                                 w, slice_end - slice_start);
             continue;
         }
-- 
2.17.1



More information about the ffmpeg-devel mailing list