]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: ilbc changes - I did an error in the patch I provided tony for r16898.
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 4 Mar 2010 17:33:26 +0000 (17:33 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 4 Mar 2010 17:33:26 +0000 (17:33 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16900 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 918184feca0fdd7ee3f5a593c471213d416dbdff..3f8fd15c9704b84472d7f0d1826a77bfb3765b8b 100644 (file)
@@ -3525,8 +3525,8 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
                                }
 
                                if (!strcasecmp((char *) rm_encoding, "ilbc")) {
-                                       char *mode = NULL;
-                                       if ((mode = strstr(map->rm_fmtp, "mode=")) && mode) {
+                                       char *mode = strstr(map->rm_fmtp, "mode=");
+                                       if (mode && (mode + 5)) {
                                                codec_ms = atoi(mode + 5);
                                        }
                                        if (!codec_ms) {