Split reference frame invalidation support capabilities into codec-specific options

This commit is contained in:
Cameron Gutman
2017-05-15 23:11:37 -07:00
parent 7aeaefd24f
commit ec6c569130
3 changed files with 15 additions and 5 deletions

View File

@@ -43,7 +43,11 @@ void initializeVideoDepacketizer(int pktSize) {
gotNextFrameStart = 0;
lastPacketInStream = -1;
decodingFrame = 0;
strictIdrFrameWait = !(VideoCallbacks.capabilities & CAPABILITY_REFERENCE_FRAME_INVALIDATION);
LC_ASSERT(NegotiatedVideoFormat != 0);
strictIdrFrameWait =
!((NegotiatedVideoFormat == VIDEO_FORMAT_H264 && (VideoCallbacks.capabilities & CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC)) ||
((NegotiatedVideoFormat == VIDEO_FORMAT_H265 && (VideoCallbacks.capabilities & CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC))));
}
// Free the NAL chain