mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 21:40:20 +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:
@@ -1130,7 +1130,7 @@ static int adjust_params(struct ug_options *opt) {
|
||||
|
||||
if (opt->audio.codec_cfg == nullptr) {
|
||||
if (strcasecmp(opt->audio.proto, "rtsp") == 0 || strcasecmp(opt->audio.proto, "sdp") == 0) {
|
||||
opt->audio.codec_cfg = "OPUS:sample_rate=48000";
|
||||
opt->audio.codec_cfg = "Opus:sample_rate=48000";
|
||||
} else {
|
||||
opt->audio.codec_cfg = DEFAULT_AUDIO_CODEC;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user