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:
Martin Pulec
2023-04-26 09:05:00 +02:00
parent da699d007d
commit 48219758ea
6 changed files with 14 additions and 14 deletions

View File

@@ -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;
}