Use codecpar instead of codec which is deprecated
This commit is contained in:
parent
c7b8d7bda9
commit
71ebae27eb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue