Merge commit 'ddf5fb71ee9c8b2d9a23c0f661a84896cd7050fc'
[ffmpeg.git] / libavformat / sdp.c
index 8c831f3607369419806a8ea1480ae6915fa8eb40..a926cf89f2c5e2ef42fd8e3a1ed48f36eb728168 100644 (file)
@@ -428,6 +428,12 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
                                     payload_type,
                                     payload_type, c->width, c->height);
             break;
+        case AV_CODEC_ID_HEVC:
+            if (c->extradata_size)
+                av_log(NULL, AV_LOG_WARNING, "HEVC extradata not currently "
+                                             "passed properly through SDP\n");
+            av_strlcatf(buff, size, "a=rtpmap:%d H265/90000\r\n", payload_type);
+            break;
         case AV_CODEC_ID_MPEG4:
             if (c->extradata_size) {
                 config = extradata2config(c);