[gstreamer-bugs] [Bug 401118] [visual] error if width not a multiple of 4

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Jan 26 13:13:13 PST 2007


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=401118

  GStreamer | gst-plugins-base | Ver: 0.10.11





------- Comment #4 from Ed Catmur  2007-01-26 21:11 UTC -------
(In reply to comment #2)
> I'd guess it should be GST_ROUND_UP_4 (visual->video->width *
> visual->video->bpp) instead.

Hmm, I don't think libvisual works like that; look at
visual_video_set_dimension():

int visual_video_set_dimension (VisVideo *video, int width, int height)
{
        visual_log_return_val_if_fail (video != NULL,
-VISUAL_ERROR_VIDEO_NULL);

        video->width = width;
        video->height = height;

        video->pitch = video->width * video->bpp;

        visual_buffer_set_size (video->buffer, video->pitch * video->height);

        return VISUAL_OK;
}

Actually, it'd be better to go straight in and use
visual->video->buffer->datasize, I think.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list