GNOME Bugzilla – Bug 745207
video-converter: sometimes crashes during ARGB -> BGRx conversion.
Last modified: 2015-03-04 11:31:44 UTC
video-converter sometimes crashes during ARGB -> BGRx conversion with borders. Reason is in converter_generic guint8 *l = ((guint8 *) lines[0]) - lb_width; points to invalid location when there is border.
Created attachment 297972 [details] [review] cache alloc line when border is available Patch attached. Please review
In case you feel like adding a small unit test for this as well, that'd be great!
I made a better patch that avoids a memcpy when there is scaling involved. commit e0a192d3dde09e52e24f0e91d2b7eddd135a04ed Author: Wim Taymans <wtaymans@redhat.com> Date: Wed Mar 4 12:21:33 2015 +0100 video-converter: don't reuse the input line when adding borders When we need to add borders, we need a writable input line, so don't reuse the source memory directly. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=745207