# HG changeset patch # User mstorsjo # Date 1283497821 0 # Node ID 3f50c7effad1a9feaa314ac10aff5f34c0e809eb # Parent 9ba950e0e021b8b93f8526400326c0f68de53558 rtsp: 10l, try to update the correct rtp stream This fixes a bug from rev 22917. Now RTSP streams where the individual RTCP sender reports aren't sent at the same time actually are synced properly. diff -r 9ba950e0e021 -r 3f50c7effad1 rtsp.c --- a/rtsp.c Thu Sep 02 19:17:46 2010 +0000 +++ b/rtsp.c Fri Sep 03 07:10:21 2010 +0000 @@ -1831,7 +1831,7 @@ * as this one. */ int i; for (i = 0; i < rt->nb_rtsp_streams; i++) { - RTPDemuxContext *rtpctx2 = rtsp_st->transport_priv; + RTPDemuxContext *rtpctx2 = rt->rtsp_streams[i]->transport_priv; if (rtpctx2 && rtpctx2->first_rtcp_ntp_time == AV_NOPTS_VALUE) rtpctx2->first_rtcp_ntp_time = rtpctx->first_rtcp_ntp_time;