From b619a86132cf6e392323ae688e9534a2fac309fb Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Mon, 17 Jun 2019 13:00:43 +0300 Subject: [PATCH] Rename get_hevc_rtp_header() to get_hevc_nal_header() I have no idea why it was called RTP header.. --- src/frame.cc | 2 +- src/frame.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frame.cc b/src/frame.cc index 06033c2..ab1b30b 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -173,7 +173,7 @@ uint8_t *kvz_rtp::frame::get_opus_header(kvz_rtp::frame::rtp_frame *frame) return frame->data + HEADER_SIZE_RTP; } -uint8_t *kvz_rtp::frame::get_hevc_rtp_header(kvz_rtp::frame::rtp_frame *frame) +uint8_t *kvz_rtp::frame::get_hevc_nal_header(kvz_rtp::frame::rtp_frame *frame) { if (!frame || !frame->data || frame->type != FRAME_TYPE_HEVC_FU) { rtp_errno = RTP_INVALID_VALUE; diff --git a/src/frame.hh b/src/frame.hh index 480939a..61b54ef 100644 --- a/src/frame.hh +++ b/src/frame.hh @@ -110,7 +110,7 @@ namespace kvz_rtp { uint8_t *get_opus_header(rtp_frame *frame); /* get pointer to hevc rtp header start or nullptr if frame is invalid */ - uint8_t *get_hevc_rtp_header(rtp_frame *frame); + uint8_t *get_hevc_nal_header(rtp_frame *frame); /* get pointer to hevc fu header start or nullptr if frame is invalid */ uint8_t *get_hevc_fu_header(rtp_frame *frame);