diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-11-11 20:44:28 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-11-14 20:38:51 +0100 |
commit | 8034130e06b03859af9ce64f7ee653cd14df328d (patch) | |
tree | ac5d06c32f27347f96c147599f2e6129178c6e1e /libavformat/rtsp.c | |
parent | 3b4296f41473a5b39e84d7a49d480624c9c60040 (diff) | |
download | ffmpeg-8034130e06b03859af9ce64f7ee653cd14df328d.tar.gz |
rtp: set the payload type as stream id
Support multiple video/audio streams with different format in the
same session.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 44de4af192..8142094a70 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -630,7 +630,8 @@ int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st) if (s->oformat && CONFIG_RTSP_MUXER) { int ret = ff_rtp_chain_mux_open(&rtsp_st->transport_priv, s, st, rtsp_st->rtp_handle, - RTSP_TCP_MAX_PACKET_SIZE); + RTSP_TCP_MAX_PACKET_SIZE, + rtsp_st->stream_index); /* Ownership of rtp_handle is passed to the rtp mux context */ rtsp_st->rtp_handle = NULL; if (ret < 0) |