mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
622fa74a07
commit
4fb0095898
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue