Your message dated Tue, 9 Oct 2012 20:00:06 +1100
with message-id <[email protected]>
has caused the   report #522768,
regarding Endian issue
to be marked as having been forwarded to the upstream software
author(s) [email protected]

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

Subject: Bug#522768: Endian issue
Date: Mon, 6 Apr 2009, 21:17:02
From: Gerrit Pape <[email protected]>
To: [email protected]

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)){





-----------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply via email to