X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsdp.c;h=01b564b7bed5b0be0dbaadb8ec3b55afa8ecb51b;hb=680ec710ec4b6f639eb0eac87129926aceea6e8d;hp=8279d595c4db8eb992ade5edfb62df12be2195bc;hpb=f591b7b5265fcf29dad12c4995ee43b0e3d594e7;p=ffmpeg diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 8279d595c4d..01b564b7bed 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -261,7 +261,7 @@ static char *extradata2psets_hevc(AVCodecParameters *par) goto err; nalu_type = extradata[pos] & 0x3f; // Not including libavcodec/hevc.h to avoid confusion between - // NAL_* with the same name for both H264 and HEVC. + // NAL_* with the same name for both H.264 and HEVC. if (nalu_type == 32) // VPS ps_pos[0] = pos; else if (nalu_type == 33) // SPS @@ -657,6 +657,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n", payload_type); break; + case AV_CODEC_ID_VP9: + av_strlcatf(buff, size, "a=rtpmap:%d VP9/90000\r\n", + payload_type); + break; case AV_CODEC_ID_MJPEG: if (payload_type >= RTP_PT_PRIVATE) av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n",