mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 12:40:19 +00:00
use Opus, not OPUS
For audio codecs, we respect its native capitalization of letters, eg. AAC, speex. So do it also for Opus. This should not affect existing applications since the Opus name is parsed case-insensitively. Only exception is SDP (rtpmap) where is usually used lower-case (at least in rfc7587).
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*
|
||||
* Copyright (c) 2005-2010 Fundació i2CAT, Internet I Innovació Digital a Catalunya
|
||||
* Copyright (c) 2001-2004 University of Southern California
|
||||
* Copyright (c) 2005-2021 CESNET z.s.p.o.
|
||||
* Copyright (c) 2005-2023 CESNET z.s.p.o.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, is permitted provided that the following conditions
|
||||
@@ -983,7 +983,7 @@ void audio_tx_send_standard(struct tx* tx, struct rtp *rtp_session,
|
||||
|
||||
if (buffer->get_codec() == AC_OPUS) { // OPUS needs to fit one package
|
||||
if (payload_size < data_len) {
|
||||
log_msg(LOG_LEVEL_ERROR, "Transmit: OPUS frame larger than packet! Discarding...\n");
|
||||
log_msg(LOG_LEVEL_ERROR, "Transmit: Opus frame larger than packet! Discarding...\n");
|
||||
return;
|
||||
}
|
||||
} else { // we may split the data into more packets, compute chunk size
|
||||
@@ -997,8 +997,8 @@ void audio_tx_send_standard(struct tx* tx, struct rtp *rtp_session,
|
||||
|
||||
// interleave
|
||||
if (buffer->get_codec() == AC_OPUS) {
|
||||
if (buffer->get_channel_count() > 1) { // we cannot interleave OPUS here
|
||||
LOG(LOG_LEVEL_ERROR) << "Transmit: Only OPUS with 1 channel is supported in RFC-compliant mode! Discarding...\n";
|
||||
if (buffer->get_channel_count() > 1) { // we cannot interleave Opus here
|
||||
LOG(LOG_LEVEL_ERROR) << "Transmit: Only Opus with 1 channel is supported in RFC-compliant mode! Discarding...\n";
|
||||
return;
|
||||
}
|
||||
memcpy(tx->tmp_packet, buffer->get_data(0), pkt_len);
|
||||
|
||||
Reference in New Issue
Block a user