forked from Mirrors/freeswitch
[core] scan-build: Value stored to 'ptime' is never read
This commit is contained in:
parent
592689c253
commit
c7eee4ba76
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user