Commit ecfc51d4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "video_filter: hqdn3d: reject computed height <= 0 (cid #718140)"

This reverts commit 6c5c07b9.
This made no sense. Picture dimensions cannot be zero or less (besides
the buffer is not used by the denoise function even then).
parent 2b867493
...@@ -136,12 +136,6 @@ static int Open(vlc_object_t *this) ...@@ -136,12 +136,6 @@ static int Open(vlc_object_t *this)
sys->w[i] = fmt_in->i_width * chroma->p[i].w.num / chroma->p[i].w.den; sys->w[i] = fmt_in->i_width * chroma->p[i].w.num / chroma->p[i].w.den;
if (sys->w[i] > wmax) wmax = sys->w[i]; if (sys->w[i] > wmax) wmax = sys->w[i];
sys->h[i] = fmt_out->i_height * chroma->p[i].h.num / chroma->p[i].h.den; sys->h[i] = fmt_out->i_height * chroma->p[i].h.num / chroma->p[i].h.den;
if(sys->w[i] <= 0 || sys->h[i] <= 0)
{
free(sys);
return VLC_EGENERIC;
}
} }
cfg->Line = malloc(wmax*sizeof(unsigned int)); cfg->Line = malloc(wmax*sizeof(unsigned int));
if (!cfg->Line) { if (!cfg->Line) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment