mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Fix zero length DMA transfer attempted failures with the ata(4) driver. This does not seem to affect users of the ahci(4) driver. While here, convert bzero/bcopy to memset/memmove, respectively. PR: 277115 Reported by: Benjamin Jacobs <freebsd@dev.thsi.be>
12 lines
386 B
C++
12 lines
386 B
C++
--- trackdb/FormatMp3.cc.orig 2023-02-03 14:46:06 UTC
|
|
+++ trackdb/FormatMp3.cc
|
|
@@ -111,7 +111,7 @@ FormatSupport::Status FormatMp3::madInit()
|
|
|
|
// Initialize libao for WAV output;
|
|
ao_sample_format out_format;
|
|
- bzero(&out_format, sizeof(out_format));
|
|
+ memset(&out_format, 0, sizeof(out_format));
|
|
out_format.bits = 16;
|
|
out_format.rate = 44100;
|
|
out_format.channels = 2;
|