Skip to content

Commit

Permalink
WHIP:Support baseline/main/high profile without B frames (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
duiniuluantanqin authored May 19, 2023
1 parent 4a81e3c commit bd9f7d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libavformat/rtcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,9 @@ static int parse_codec(AVFormatContext *s)
desc ? desc->name : "unknown");
return AVERROR_PATCHWELCOME;
}
if (par->profile > 0 && (par->profile & ~FF_PROFILE_H264_CONSTRAINED) != FF_PROFILE_H264_BASELINE) {
av_log(s, AV_LOG_ERROR, "Profile %d of stream %d is not baseline, currently unsupported by RTC\n",
par->profile, i);

if (par->video_delay > 0) {
av_log(s, AV_LOG_ERROR, "Unsupported B frames by RTC\n");
return AVERROR_PATCHWELCOME;
}

Expand Down

0 comments on commit bd9f7d1

Please sign in to comment.