video-converter: bits variable always set

In function gst_video_scaler_vertical() the bits variable is always
set to either 8 or 16 in every possible format. No need to initialize it.

If the format isn't valid it goes to no_func, so there is no need to
handle the case of bits not being 8 or 16.

CID #1268401
This commit is contained in:
Luis de Bethencourt 2015-02-10 15:25:04 +00:00
parent 622fa74a07
commit 4fb0095898

View file

@ -1256,7 +1256,7 @@ void
gst_video_scaler_vertical (GstVideoScaler * scale, GstVideoFormat format,
gpointer src_lines[], gpointer dest, guint dest_offset, guint width)
{
gint n_elems, bits = 0;
gint n_elems, bits;
GstVideoScalerVFunc func;
g_return_if_fail (scale != NULL);
@ -1340,8 +1340,7 @@ gst_video_scaler_vertical (GstVideoScaler * scale, GstVideoFormat format,
func = video_scale_v_ntap_u16;
break;
}
} else
goto no_func;
}
if (scale->tmpwidth < width)
realloc_tmplines (scale, n_elems, width);