From: Dragos Oancea Date: Thu, 30 Jan 2020 19:33:07 +0000 (+0000) Subject: [core] scan-build: Value stored to 'ptime' is never read X-Git-Tag: v1.10.3^2~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7eee4ba767ec45307753cb63b7267ffa4ca4b39;p=thirdparty%2Ffreeswitch.git [core] scan-build: Value stored to 'ptime' is never read --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 9b30730691..bc048cf2eb 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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 {