[FFmpeg-cvslog] avfilter/vf_morpho: fix leak by not returning too early
Paul B Mahol
git at videolan.org
Tue Oct 5 21:14:32 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Oct 5 20:10:26 2021 +0200| [21979cf98e2df41ee42e6a11f71491fc2ee1976c] | committer: Paul B Mahol
avfilter/vf_morpho: fix leak by not returning too early
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=21979cf98e2df41ee42e6a11f71491fc2ee1976c
---
libavfilter/vf_morpho.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c
index 93ad6aed71..f91957ab81 100644
--- a/libavfilter/vf_morpho.c
+++ b/libavfilter/vf_morpho.c
@@ -892,7 +892,7 @@ copy:
break;
ret = erode(&s->h[p], &s->f[p], &s->SE[p], &s->Ty[1][p]);
if (ret < 0)
- return ret;
+ break;
difference(&s->g[p], &s->h[p]);
break;
case TOPHAT:
More information about the ffmpeg-cvslog
mailing list