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
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);
func = video_scale_v_ntap_u16;
break;
}
- } else
- goto no_func;
+ }
if (scale->tmpwidth < width)
realloc_tmplines (scale, n_elems, width);