mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_morpho: fix leak by not returning too early
This commit is contained in:
parent
07e4669053
commit
21979cf98e
|
@ -892,7 +892,7 @@ copy:
|
||||||
break;
|
break;
|
||||||
ret = erode(&s->h[p], &s->f[p], &s->SE[p], &s->Ty[1][p]);
|
ret = erode(&s->h[p], &s->f[p], &s->SE[p], &s->Ty[1][p]);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
break;
|
||||||
difference(&s->g[p], &s->h[p]);
|
difference(&s->g[p], &s->h[p]);
|
||||||
break;
|
break;
|
||||||
case TOPHAT:
|
case TOPHAT:
|
||||||
|
|
Loading…
Reference in New Issue