From 71ebae27ebd41bb37016bc8b7de82dbbb79c761f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 22 Jan 2021 19:29:01 -0500 Subject: [PATCH] Use codecpar instead of codec which is deprecated --- src/zm_rtsp_server_h264_device_source.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zm_rtsp_server_h264_device_source.cpp b/src/zm_rtsp_server_h264_device_source.cpp index eac3446b0..700e37873 100644 --- a/src/zm_rtsp_server_h264_device_source.cpp +++ b/src/zm_rtsp_server_h264_device_source.cpp @@ -28,7 +28,7 @@ H264_ZoneMinderDeviceSource::H264_ZoneMinderDeviceSource( : H26X_ZoneMinderDeviceSource(env, monitor, stream, queueSize, repeatConfig, keepMarker) { // extradata appears to simply be the SPS and PPS NAL's - this->splitFrames(m_stream->codec->extradata, m_stream->codec->extradata_size); + this->splitFrames(m_stream->codecpar->extradata, m_stream->codecpar->extradata_size); } // split packet into frames @@ -69,7 +69,7 @@ std::list< std::pair > H264_ZoneMinderDeviceSource::spli std::ostringstream os; os << "profile-level-id=" << std::hex << std::setw(6) << std::setfill('0') << profile_level_id; - os << ";sprop-parameter-sets=" << sps_base64 <<"," << pps_base64; + os << ";sprop-parameter-sets=" << sps_base64 << "," << pps_base64; m_auxLine.assign(os.str()); Debug(1, "auxLine: %s", m_auxLine.c_str()); @@ -93,7 +93,7 @@ H265_ZoneMinderDeviceSource::H265_ZoneMinderDeviceSource( : H26X_ZoneMinderDeviceSource(env, monitor, stream, queueSize, repeatConfig, keepMarker) { // extradata appears to simply be the SPS and PPS NAL's - this->splitFrames(m_stream->codec->extradata, m_stream->codec->extradata_size); + this->splitFrames(m_stream->codecpar->extradata, m_stream->codecpar->extradata_size); } // split packet in frames