Your message dated Mon, 10 Mar 2025 11:41:46 +0100
with message-id 
<trinity-dde6a7d1-1ee3-40dc-875b-1164814c5db3-1741603306939@msvc-mesg-gmx103>
and subject line Endian issue
has caused the Debian Bug report #522768,
regarding Endian issue
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
522768: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522768
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)){



--- End Message ---
--- Begin Message ---
Version: 5.3.105-1

--- End Message ---

Reply via email to