ffmpeg | branch: master | Paul B Mahol <one...@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) {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to