Mercurial > libavformat.hg
diff rtsp.c @ 3962:72efef66f566 libavformat
This patch refactors RDT packet header parsing so that it can be used in
rtsp.c to detect the ID of the packet source also in case of TCP streams.
This allows proper playback of RDT streams with multiple stream types, e.g.
audio + video. Accepted by LucaB in "RDT/Realmedia patches #2" thread on ML.
author | rbultje |
---|---|
date | Wed, 01 Oct 2008 12:37:07 +0000 |
parents | a4528ac946e6 |
children | 4a3372240319 |
line wrap: on
line diff
--- a/rtsp.c Tue Sep 30 13:27:19 2008 +0000 +++ b/rtsp.c Wed Oct 01 12:37:07 2008 +0000 @@ -1265,6 +1265,9 @@ ret = url_readbuf(rt->rtsp_hd, buf, len); if (ret != len) return -1; + if (rt->transport == RTSP_TRANSPORT_RDT && + ff_rdt_parse_header(buf, len, &id, NULL, NULL, NULL) < 0) + return -1; /* find the matching stream */ for(i = 0; i < rt->nb_rtsp_streams; i++) {