Use codecpar instead of codec which is deprecated

This commit is contained in:
Isaac Connor 2021-01-22 19:29:01 -05:00
parent c7b8d7bda9
commit 71ebae27eb
1 changed files with 3 additions and 3 deletions

View File

@ -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
@ -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