[FFmpeg-cvslog] avfilter/vf_bm3d: fix possible infinite loop

Paul B Mahol git at videolan.org
Sun Oct 13 19:19:04 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Oct 13 18:16:19 2019 +0200| [365083556ea7773604cca90dce729f988899a830] | committer: Paul B Mahol

avfilter/vf_bm3d: fix possible infinite loop

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

 libavfilter/vf_bm3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c
index 04cc19ccee..3196b63884 100644
--- a/libavfilter/vf_bm3d.c
+++ b/libavfilter/vf_bm3d.c
@@ -748,7 +748,7 @@ static int filter_frame(AVFilterContext *ctx, AVFrame **out, AVFrame *in, AVFram
     av_frame_copy_props(*out, in);
 
     for (p = 0; p < s->nb_planes; p++) {
-        const int nb_jobs = FFMIN(s->nb_threads, s->planeheight[p] / s->block_step);
+        const int nb_jobs = FFMIN(s->nb_threads, s->planeheight[p] / s->block_size);
         ThreadData td;
 
         if (!((1 << p) & s->planes) || ctx->is_disabled) {



More information about the ffmpeg-cvslog mailing list