ccaudio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ccaudio-devel] [PATCH] GSM decode


From: FyMonkey
Subject: [Ccaudio-devel] [PATCH] GSM decode
Date: Sun, 22 Mar 2009 18:38:36 -0400
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

To Whom It May Concern:

I found a bug that affects the GSM codec in the ccaudio2 library. The problem is that it encodes just fine but the decode does not work correctly. The reason for this is because the encoded frame is incremented at 160 bytes instead of the GSM standard 33 bytes. Please refer to the attached patch file.

Regards,
-FyMonkey
diff -crB ccaudio2-1.0.0/codecs/gsm.cpp ccaudio2-1.0.1/codecs/gsm.cpp
*** ccaudio2-1.0.0/codecs/gsm.cpp       2008-12-16 12:23:29.000000000 -0500
--- ccaudio2-1.0.1/codecs/gsm.cpp       2009-03-22 18:35:52.000000000 -0400
***************
*** 115,121 ****
  
        while(count--) {
                gsm_decode(decoder, encoded, dest);
!               encoded += 160;
                dest += 160;
        }
        return result;
--- 115,121 ----
  
        while(count--) {
                gsm_decode(decoder, encoded, dest);
!               encoded += 33;
                dest += 160;
        }
        return result;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]