]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: Value stored to 'ptime' is never read
authorDragos Oancea <dragos@signalwire.com>
Thu, 30 Jan 2020 19:33:07 +0000 (19:33 +0000)
committerAndrey Volk <andywolk@gmail.com>
Fri, 6 Mar 2020 15:28:09 +0000 (19:28 +0400)
src/switch_core_media.c

index 9b3073069101564495d43f03f40e02d25b50ff2a..bc048cf2eb4a2593fb2674746125bff7a2150fa9 100644 (file)
@@ -13360,15 +13360,15 @@ static void add_audio_codec(sdp_rtpmap_t *map, const switch_codec_implementation
        map_bit_rate = switch_known_bitrate((switch_payload_t)map->rm_pt);
 
        if (!ptime && !strcasecmp(map->rm_encoding, "g723")) {
-               ptime = codec_ms = 30;
+               codec_ms = 30;
        }
 
        if (zstr(map->rm_fmtp)) {
                if (!strcasecmp(map->rm_encoding, "ilbc")) {
-                       ptime = codec_ms = 30;
+                       codec_ms = 30;
                        map_bit_rate = 13330;
                } else if (!strcasecmp(map->rm_encoding, "isac")) {
-                       ptime = codec_ms = 30;
+                       codec_ms = 30;
                        map_bit_rate = 32000;
                }
        } else {