[gstreamer-bugs] [Bug 607164] New: sws_scale() 2nd argument type mismatch

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Jan 16 10:14:09 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=607164
  GStreamer | gst-ffmpeg | git

           Summary: sws_scale() 2nd argument type mismatch
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-ffmpeg
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: lrn1986 at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


gstffmpegscale.c: In function 'gst_ffmpegscale_transform':
gstffmpegscale.c:677: error: passing argument 2 of 'sws_scale' from
incompatible pointer type
f:/gstreamer-buildslave/msys/1.0.11/local/include/libswscale/swscale.h:187:
note: expected 'uint8_t **' but argument is of type 'const guint8 **'

1)
swscale.h says:
int sws_scale(struct SwsContext *context, uint8_t* srcSlice[], int srcStride[],
int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);

2)
glibconfig.h says:
typedef unsigned char guint8;

3)
gstffmpegscale.c says:
sws_scale (scale->ctx, (const guint8 **) in_data, scale->in_stride, 0,
scale->in_height, out_data, scale->out_stride);

The (3) is caused by
http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=0b40ac6331fece58617dbfaadb1460a93d38dad4

Everything worked before (3)

How to fix:
Supply in_data as (uint_8**) rather than (const guin8 **), because GCC thinks
that sws_scale expects (uint8_t**).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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