FreeBSD Bugzilla – Attachment 199246 Details for
Bug 233231
fix build of audio/webrtc-audio-processing on powerpc64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new patchfile #2
patch-webrtc_common__audio_wav__header.cc (text/plain), 1.33 KB, created by
Mark Linimon
on 2018-11-14 21:21:58 UTC
(
hide
)
Description:
new patchfile #2
Filename:
MIME Type:
Creator:
Mark Linimon
Created:
2018-11-14 21:21:58 UTC
Size:
1.33 KB
patch
obsolete
>--- webrtc/common_audio/wav_header.cc.orig 2018-07-23 14:02:57 UTC >+++ webrtc/common_audio/wav_header.cc >@@ -129,7 +129,39 @@ static inline std::string ReadFourCC(uin > return std::string(reinterpret_cast<char*>(&x), 4); > } > #else >-#error "Write be-to-le conversion functions" >+static inline void WriteLE16(uint16_t* f, uint16_t x) { >+ *f = ((x << 8) & 0xff00) | ( ( x >> 8) & 0x00ff); >+} >+ >+static inline void WriteLE32(uint32_t* f, uint32_t x) { >+ *f = ( (x & 0x000000ff) << 24 ) >+ | ((x & 0x0000ff00) << 8) >+ | ((x & 0x00ff0000) >> 8) >+ | ((x & 0xff000000) >> 24 ); >+} >+ >+static inline void WriteFourCC(uint32_t* f, char a, char b, char c, char d) { >+ *f = (static_cast<uint32_t>(a) << 24 ) >+ | (static_cast<uint32_t>(b) << 16) >+ | (static_cast<uint32_t>(c) << 8) >+ | (static_cast<uint32_t>(d) ); >+} >+ >+static inline uint16_t ReadLE16(uint16_t x) { >+ return (( x & 0x00ff) << 8 )| ((x & 0xff00)>>8); >+} >+ >+static inline uint32_t ReadLE32(uint32_t x) { >+ return ( (x & 0x000000ff) << 24 ) >+ | ( (x & 0x0000ff00) << 8 ) >+ | ( (x & 0x00ff0000) >> 8) >+ | ( (x & 0xff000000) >> 24 ); >+} >+ >+static inline std::string ReadFourCC(uint32_t x) { >+ x = ReadLE32(x); >+ return std::string(reinterpret_cast<char*>(&x), 4); >+} > #endif > > static inline uint32_t RiffChunkSize(uint32_t bytes_in_payload) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233231
:
199245
| 199246 |
199247