From 18a069144818598db379743a88e63fac4beb2ecd Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 24 Jun 2019 17:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtpReceiver.cpp | 8 ++++---- src/Rtsp/RtpReceiver.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Rtsp/RtpReceiver.cpp b/src/Rtsp/RtpReceiver.cpp index 15770a81..edb07faf 100644 --- a/src/Rtsp/RtpReceiver.cpp +++ b/src/Rtsp/RtpReceiver.cpp @@ -180,12 +180,12 @@ void RtpReceiver::setPoolSize(int size) { _rtp_pool.setSize(size); } -int RtpReceiver::getJitterSize(int iTrackidx){ - return _rtp_sort_cache_map[iTrackidx].size(); +int RtpReceiver::getJitterSize(int track_index){ + return _rtp_sort_cache_map[track_index].size(); } -int RtpReceiver::getCycleCount(int iTrackidx){ - return _seq_cycle_count[iTrackidx]; +int RtpReceiver::getCycleCount(int track_index){ + return _seq_cycle_count[track_index]; } diff --git a/src/Rtsp/RtpReceiver.h b/src/Rtsp/RtpReceiver.h index 9bea72cb..277d811e 100644 --- a/src/Rtsp/RtpReceiver.h +++ b/src/Rtsp/RtpReceiver.h @@ -58,14 +58,14 @@ protected: /** * rtp数据包排序后输出 - * @param rtppt rtp数据包 - * @param trackidx track索引 + * @param rtp rtp数据包 + * @param track_index track索引 */ - virtual void onRtpSorted(const RtpPacket::Ptr &rtp, int trackidx){} + virtual void onRtpSorted(const RtpPacket::Ptr &rtp, int track_index){} void clear(); void setPoolSize(int size); - int getJitterSize(int iTrackidx); - int getCycleCount(int iTrackidx); + int getJitterSize(int track_index); + int getCycleCount(int track_index); private: void sortRtp(const RtpPacket::Ptr &rtp , int track_index); private: