head 1.7; access; symbols pkgsrc-2013Q2:1.7.0.10 pkgsrc-2013Q2-base:1.7 pkgsrc-2012Q4:1.7.0.8 pkgsrc-2012Q4-base:1.7 pkgsrc-2011Q4:1.7.0.6 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q2:1.7.0.4 pkgsrc-2011Q2-base:1.7 pkgsrc-2009Q4:1.7.0.2 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q2:1.6.0.2 pkgsrc-2009Q2-base:1.6 pkgsrc-2008Q4:1.4.0.14 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.12 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.10 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.8 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.6 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.4 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.2 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.3.0.4 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.2 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.2.0.8 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2; locks; strict; comment @# @; 1.7 date 2009.09.08.20.22.03; author drochner; state dead; branches; next 1.6; 1.6 date 2009.06.05.11.14.16; author wiz; state Exp; branches; next 1.5; 1.5 date 2009.06.05.10.48.38; author drochner; state Exp; branches; next 1.4; 1.4 date 2007.07.06.19.13.14; author drochner; state dead; branches; next 1.3; 1.3 date 2007.01.13.09.18.22; author wiz; state Exp; branches; next 1.2; 1.2 date 2006.02.13.19.22.33; author wiz; state dead; branches; next 1.1; 1.1 date 2006.01.30.21.20.42; author rillig; state Exp; branches; next ; desc @@ 1.7 log @update to 0.10.16 changes: Moved rtpmanager from -bad to -good Implement SEEKING query in more demuxers and decoders (notably mkv, flv, flac) avimux: adds support to WMA/WMV cairo: Add cairo-based PDF/PS/SVG encoder element (cairorender) dv1394src: fix element for live usage effectv: new elements: rippletv, streaktv, radioactv, optv flacdec: fix intermittent FLAC__STREAM_DECODER_ABORTED errors when seeking flacenc: fix issue with broken duration / sample count into flac header in some cases flvmux: lots of fixes and improvements id3demux: fix parsing of unsync'ed ID3 v2.4 tags and frames matroska: add kate subtitle support, add/improve WMA/WMV handling and read bluray PGS subpicture streams multipartdemux: support more mime types, do proper flow aggregation pulsesrc: cleanups, report real latency, set the default slave method to skew qtdemux: support for agsm, misc. tag reading fixes rtp: new QDM2 and CELT depayloaders; fix SVQ3 depayloader and make it autopluggable souphttpsrc: Only assume seekability if the server provides Content-Length v4l2: add v4l2sink element, open device in NULL->READY, optional gudev support v4l2src: fix 'hang' with some cameras caused by bad timestamping if no framerate is available videomixer: add RGB format support; fix I420 blending @ text @$NetBSD: patch-ad,v 1.6 2009/06/05 11:14:16 wiz Exp $ Fix for SA35205 from upstream CVS. --- ext/libpng/gstpngdec.c.orig 2009-05-12 02:00:06.000000000 +0200 +++ ext/libpng/gstpngdec.c @@@@ -201,7 +201,14 @@@@ user_info_callback (png_structp png_ptr, /* Allocate output buffer */ pngdec->rowbytes = png_get_rowbytes (pngdec->png, pngdec->info); - buffer_size = pngdec->height * GST_ROUND_UP_4 (pngdec->rowbytes); + if (pngdec->rowbytes > (G_MAXUINT32 - 3) + || pngdec->height > G_MAXUINT32 / pngdec->rowbytes) { + ret = GST_FLOW_ERROR; + goto beach; + } + pngdec->rowbytes = GST_ROUND_UP_4 (pngdec->rowbytes); + buffer_size = pngdec->height * pngdec->rowbytes; + ret = gst_pad_alloc_buffer_and_set_caps (pngdec->srcpad, GST_BUFFER_OFFSET_NONE, buffer_size, GST_PAD_CAPS (pngdec->srcpad), &buffer); @@@@ -228,7 +235,7 @@@@ user_endrow_callback (png_structp png_pt /* If buffer_out doesn't exist, it means buffer_alloc failed, which * will already have set the return code */ if (GST_IS_BUFFER (pngdec->buffer_out)) { - size_t offset = row_num * GST_ROUND_UP_4 (pngdec->rowbytes); + size_t offset = row_num * pngdec->rowbytes; GST_LOG ("got row %u, copying in buffer %p at offset %" G_GSIZE_FORMAT, (guint) row_num, pngdec->buffer_out, offset); @@@@ -496,7 +503,12 @@@@ gst_pngdec_task (GstPad * pad) /* Allocate output buffer */ rowbytes = png_get_rowbytes (pngdec->png, pngdec->info); - buffer_size = pngdec->height * GST_ROUND_UP_4 (rowbytes); + if (rowbytes > (G_MAXUINT32 - 3) || pngdec->height > G_MAXUINT32 / rowbytes) { + ret = GST_FLOW_ERROR; + goto pause; + } + rowbytes = GST_ROUND_UP_4 (rowbytes); + buffer_size = pngdec->height * rowbytes; ret = gst_pad_alloc_buffer_and_set_caps (pngdec->srcpad, GST_BUFFER_OFFSET_NONE, buffer_size, GST_PAD_CAPS (pngdec->srcpad), &buffer); @@@@ -509,7 +521,7 @@@@ gst_pngdec_task (GstPad * pad) for (i = 0; i < pngdec->height; i++) { rows[i] = inp; - inp += GST_ROUND_UP_4 (rowbytes); + inp += rowbytes; } /* Read the actual picture */ @ 1.6 log @Add comment explaining origin and reason of patch. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.5 2009/06/05 10:48:38 drochner Exp $ @ 1.5 log @add a security patch from upstream CVS: A malformed (or simply huge) PNG file can lead to integer overflow in calculating the size of the output buffer, leading to crashes or buffer overflows later. Fixes SA35205 security advisory. bump PKGREVISION of affected plugin @ text @d1 3 a3 1 $NetBSD$ @ 1.4 log @update to 0.10.6 changes: -Much improved RTSP/RTP and V4l2 support -New plugins - audiopanorama, audioinvert, audiodynamic, audioamplify -qtdemux, videocrop and wavpack elements moved from Bad Plugins -Fixes in avi and matroska muxing -Fixes in wavparse, sunaudio, AVI demuxing, ID3 tag handling -gamma element ported to 0.10 @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 2007/01/13 09:18:22 wiz Exp $ d3 3 a5 5 --- ext/flac/gstflacdec.h.orig 2006-08-22 12:28:24.000000000 +0000 +++ ext/flac/gstflacdec.h @@@@ -41,7 +41,11 @@@@ typedef struct _GstFlacDecClass GstFlacD struct _GstFlacDec { GstElement element; d7 20 a26 5 +#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8 FLAC__SeekableStreamDecoder *seekable_decoder; /* for pull-based operation */ +#else + FLAC__StreamDecoder *seekable_decoder; /* for pull-based operation */ +#endif d28 25 a52 2 FLAC__StreamDecoder *stream_decoder; /* for chain-based operation */ GstAdapter *adapter; @ 1.3 log @Add patches for gst-plugins0.10-flac to support flac-1.1.3. From Mandriva Cooker source rpm. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to 0.10.2: This is GStreamer Good Plug-ins 0.10.2, "Papa was a rolling stone". Changes since 0.10.1: * New libcdio based CDDA reading element * APE tag reader ported * ID3 tag reading fixes * Sun Audio Sink fixes * GOOM and gconf element fixes * lots of bug and leak fixes Bugs fixed since 0.10.1: * 328336 : silence warings which make dvdec / dvdemux unusable * 315557 : Internal event problem with MP3s from vgmix.com * 323327 : [cdio] port cddasrc to 0.10 * 325148 : Bugs in G711 RTP packetization logic * 325649 : apetag plugin needs porting to 0.10 * 326446 : check that all elements in -good pass queries they can't ... * 326602 : id3demux is not compiling without ZLIB * 326683 : build problem caused by AS_LIBTOOL_TAGS([CXX]) * 326736 : gconf(audio|video)sink response to key changes * 326864 : [wavparse] time to bytes format conversion broken * 327009 : [esdsink] won't compile with includes in non-standard prefix * 327765 : [sunaudio] fixes for mixer and stuttering mp3 playback * 327825 : [matroskamux] Matroska muxer deadlock * 327871 : [videobox] crash when cropping * 328241 : id3demux emits NULL date for year tags * 328264 : Fix build with gcc 2.95 * 328531 : [matroskamux] doesn't send newsegment event, critical war... * 329181 : totem crash when using goom effect * 329810 : Fails to read ID3 tag * 330005 : Please use the autodetect sinks by default * 317658 : [cdio] support for cd-text and cd-g @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.1 2006/01/30 21:20:42 rillig Exp $ d3 11 a13 11 Keywords: c90 --- gst/udp/gstmultiudpsink.c.orig 2006-01-10 15:01:57.000000000 +0100 +++ gst/udp/gstmultiudpsink.c 2006-01-30 21:34:54.000000000 +0100 @@@@ -462,10 +462,10 @@@@ gst_multiudpsink_get_stats (GstMultiUDPS find = g_list_find_custom (sink->clients, &udpclient, (GCompareFunc) client_compare); if (find) { - client = (GstUDPClient *) find->data; - GValue value = { 0 }; d15 2 a16 5 + client = (GstUDPClient *) find->data; + /* Result is a value array of (bytes_sent, packets_sent, * connect_time, disconnect_time), all as uint64 */ result = g_value_array_new (4); @ 1.1 log @Added some patches for ISO C90 compatibility. @ text @d1 1 a1 1 $NetBSD$ @