Skip to content

Commit

Permalink
Change SDP syntax for AV1 from "AV1X" to "AV1" (fixes #2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Jan 10, 2022
1 parent 1aa0405 commit 89acd50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sdp-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ int janus_sdp_get_codec_pt_full(janus_sdp *sdp, const char *codec, const char *p
format2 = "H264/90000";
} else if(!strcasecmp(codec, "av1")) {
video = TRUE;
format = "av1x/90000";
format2 = "AV1X/90000";
format = "av1/90000";
format2 = "AV1/90000";
} else if(!strcasecmp(codec, "h265")) {
video = TRUE;
format = "h265/90000";
Expand Down Expand Up @@ -879,7 +879,7 @@ const char *janus_sdp_get_codec_rtpmap(const char *codec) {
if(!strcasecmp(codec, "h264"))
return "H264/90000";
if(!strcasecmp(codec, "av1"))
return "AV1X/90000";
return "AV1/90000";
if(!strcasecmp(codec, "h265"))
return "H265/90000";
JANUS_LOG(LOG_ERR, "Unsupported codec '%s'\n", codec);
Expand Down
4 changes: 2 additions & 2 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ int janus_get_codec_pt(const char *sdp, const char *codec) {
format2 = "H264/90000";
} else if(!strcasecmp(codec, "av1")) {
video = 1;
format = "av1x/90000";
format2 = "AV1X/90000";
format = "av1/90000";
format2 = "AV1/90000";
} else if(!strcasecmp(codec, "h265")) {
video = 1;
format = "h265/90000";
Expand Down

0 comments on commit 89acd50

Please sign in to comment.