Skip to content

Commit 9356ea6

Browse files
committed
feat: rtsp support mpeg4-video
1 parent f9b185f commit 9356ea6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

librtsp/source/sdp/sdp-payload.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int sdp_payload_video(uint8_t* data, int bytes, int rtp, const char* proto, unsi
2929
case RTP_PAYLOAD_AV1X:
3030
return sdp_av1(data, bytes, proto, port, payload, frequence, extra, extra_size);
3131

32+
case RTP_PAYLOAD_MP4V:
3233
case RTP_PAYLOAD_MP4ES:
3334
return sdp_mpeg4_es(data, bytes, proto, port, payload, frequence, extra, extra_size);
3435

librtsp/source/utils/rtsp-demuxer.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,11 @@ int rtsp_demuxer_add_payload(struct rtsp_demuxer_t* demuxer, int frequency, int
483483
}
484484
break;
485485

486+
case AVCODEC_VIDEO_MPEG4:
487+
if (fmtp && *fmtp && 0 == sdp_a_fmtp_mpeg4(fmtp, &payload, &pt->fmtp.mpeg4))
488+
pt->extra_bytes = sdp_aac_mpeg4_load(pt->extra, len, pt->fmtp.mpeg4.config);
489+
break;
490+
486491
// TODO:
487492
case AVCODEC_VIDEO_AV1:
488493
case AVCODEC_VIDEO_VP8:

0 commit comments

Comments
 (0)