mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
Fix SIGBUS with 24 bit content over OSS output
PR: 234574 Submitted by: dev@submerge.ch MFH: 2019Q1
This commit is contained in:
parent
7ddff9a377
commit
8c858f27ae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=489219
2 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
|
26
audio/jack/files/patch-libjack_port.c
Normal file
26
audio/jack/files/patch-libjack_port.c
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue