]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4266 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 29 May 2012 13:42:51 +0000 (08:42 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 29 May 2012 13:42:51 +0000 (08:42 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 6bb7d3ee5fdb23d91121fc8de43cc142f1969a6c..577c36668eac525c7989aa7e06bac41982612e16 100644 (file)
@@ -1751,7 +1751,7 @@ void sofia_glue_tech_patch_sdp(private_object_t *tech_pvt)
 
                        }
 
-               } else if ((!strncmp("m=audio ", p, 8) && *(p + 9) != '0') || (!strncmp("m=image ", p, 8) && *(p + 9) != '0')) {
+               } else if ((!strncmp("m=audio ", p, 8) && *(p + 8) != '0') || (!strncmp("m=image ", p, 8) && *(p + 8) != '0')) {
                        strncpy(q, p, 8);
                        p += 8;
 
@@ -1787,7 +1787,7 @@ void sofia_glue_tech_patch_sdp(private_object_t *tech_pvt)
 
                        has_audio++;
 
-               } else if (!strncmp("m=video ", p, 8) && *(p + 9) != '0') {
+               } else if (!strncmp("m=video ", p, 8) && *(p + 8) != '0') {
                        if (!has_video) {
                                sofia_glue_tech_choose_video_port(tech_pvt, 1);
                                tech_pvt->video_rm_encoding = "PROXY-VID";