Date: Thu, 3 Jan 2019 20:24:31 +0000 (UTC) From: Thomas Zander <riggs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r489219 - in head/audio/jack: . files Message-ID: <201901032024.x03KOVLk074095@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: riggs Date: Thu Jan 3 20:24:30 2019 New Revision: 489219 URL: https://svnweb.freebsd.org/changeset/ports/489219 Log: Fix SIGBUS with 24 bit content over OSS output PR: 234574 Submitted by: dev@submerge.ch MFH: 2019Q1 Added: head/audio/jack/files/patch-libjack_port.c (contents, props changed) Modified: head/audio/jack/Makefile Modified: head/audio/jack/Makefile ============================================================================== --- head/audio/jack/Makefile Thu Jan 3 20:19:49 2019 (r489218) +++ head/audio/jack/Makefile Thu Jan 3 20:24:30 2019 (r489219) @@ -3,7 +3,7 @@ PORTNAME= jackit PORTVERSION= 0.125.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= audio MAINTAINER= multimedia@FreeBSD.org @@ -21,6 +21,7 @@ LIB_DEPENDS= libsndfile.so:audio/libsndfile \ USES= autoreconf compiler:c11 gmake pathfix pkgconfig libtool localbase bdb USE_GITHUB= yes + GH_ACCOUNT= jackaudio GH_PROJECT= jack1 GH_TAGNAME= 90f9dd3 Added: head/audio/jack/files/patch-libjack_port.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/jack/files/patch-libjack_port.c Thu Jan 3 20:24:30 2019 (r489219) @@ -0,0 +1,26 @@ +--- libjack/port.c.orig 2019-01-02 01:51:31 UTC ++++ libjack/port.c +@@ -630,13 +630,22 @@ jack_port_get_buffer (jack_port_t *port, jack_nframes_ + size_t + jack_port_type_buffer_size (jack_port_type_info_t* port_type_info, jack_nframes_t nframes) + { ++ size_t size; ++ + if ( port_type_info->buffer_scale_factor < 0 ) { + return port_type_info->buffer_size; + } + +- return port_type_info->buffer_scale_factor ++ size = port_type_info->buffer_scale_factor + * sizeof(jack_default_audio_sample_t) + * nframes; ++ ++#ifdef USE_DYNSIMD ++ /* Round up to the next multiple of 16 bytes, align buffers for SIMD. */ ++ size = (size + 15) & (~ (size_t)0x0f); ++#endif /* USE_DYNSIMD */ ++ ++ return size; + } + + int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901032024.x03KOVLk074095>