[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] Fwd: Bug#522768: Endian issue
From: |
Mark Purcell |
Subject: |
[Linphone-developers] Fwd: Bug#522768: Endian issue |
Date: |
Tue, 9 Oct 2012 20:27:30 +1100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; ) |
---------- Forwarded Message ----------
Subject: Bug#522768: Endian issue
Date: Mon, 6 Apr 2009, 21:17:02
From: Gerrit Pape <address@hidden>
To: address@hidden
Package: linphone-nox
Version: 3.0.0-3
Tags: patch upstream
Hi, linphonec doesn't play the incoming ring sound on powerpc. It's a
bad seek() due to an endian issue, please see the patch below. With the
patch the ring play fine. I'm not sure about data_chunk->len, and
didn't really check since it works for me for now.
Regards, Gerrit.
diff -urN ../linphone-3.0.0~/mediastreamer2/src/msfileplayer.c
./mediastreamer2/src/msfileplayer.c
--- ../linphone-3.0.0~/mediastreamer2/src/msfileplayer.c 2008-09-10
20:51:43.000000000 +0000
+++ ./mediastreamer2/src/msfileplayer.c 2009-04-01 08:16:13.000000000 +0000
@@ -89,12 +89,12 @@
d->rate=le_uint32(format_chunk->rate);
d->nchannels=le_uint16(format_chunk->channel);
- if (format_chunk->len-0x10>0)
+ if (le_uint32(format_chunk->len)-0x10>0)
{
- lseek(d->fd,(format_chunk->len-0x10),SEEK_CUR);
+ lseek(d->fd,(le_uint32(format_chunk->len)-0x10),SEEK_CUR);
}
- d->hsize=sizeof(wave_header_t)-0x10+format_chunk->len;
+ d->hsize=sizeof(wave_header_t)-0x10+le_uint32(format_chunk->len);
len = read(d->fd, header3, sizeof(header3)) ;
if (len != sizeof(header3)){
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] Fwd: Bug#522768: Endian issue,
Mark Purcell <=