[Bug 752051] New: GstVideoScaler: Initialised scaling functions to get rid of compiler messages

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 7 01:36:42 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=752051

            Bug ID: 752051
           Summary: GstVideoScaler:  Initialised scaling functions to get
                    rid of compiler messages
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: gnome-bugs at muelli.cryptobitch.de
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 306980
  --> https://bugzilla.gnome.org/attachment.cgi?id=306980&action=edit
patch

GstVideoScaler:  Initialised scaling functions to get rid of compiler messages

    E.g.

    video-scaler.c: In function 'gst_video_scaler_horizontal':
    video-scaler.c:1332:3: error: 'func' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
       func (scale, src, dest, dest_offset, width, n_elems);
       ^

    video-scaler.c: In function 'gst_video_scaler_vertical':
    video-scaler.c:1373:3: error: 'func' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
       func (scale, src_lines, dest, dest_offset, width, n_elems);
       ^

    GCC's analyses seem to be correct, for the simple fact that if you pass
    get_functions a known format, but no hscale or vscale, it'll return
    True without having done anything.
    Some callers check for the scale values to be not NULL, but then
    hscale->resampler.max_taps could return 0.
    A different approach to the one presented in this patch is to check
    for those max_taps, too, before calling get_functions.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list