TT#14008 fix G.729 recording with bcg729

closes #1223

Change-Id: I0a936a6d9fae77e74a9cec4f2ad2e05923da8f69
pull/1224/head
Richard Fuchs 4 years ago
parent 389f18ab45
commit 7aabd7dddd

@ -53,8 +53,11 @@ decode_t *decoder_new(const char *payload_str, const char *format, int ptime, ou
ilog(LOG_WARN, "No decoder for payload %s", payload_str);
return NULL;
}
if (def->avcodec_id == -1) // not a real audio codec
if (def->supplemental || !def->support_decoding || def->media_type != MT_AUDIO) {
// not a real audio codec
ilog(LOG_DEBUG, "Not decoding codec %s", payload_str);
return NULL;
}
// decoder_new_fmt already handles the clockrate_mult scaling
int rtp_clockrate = clockrate;

Loading…
Cancel
Save