Only calculate keyframe interval using video stream

pull/3793/head
Isaac Connor 2023-12-06 12:25:30 -05:00
parent c2946f203e
commit f07612c25f
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
} // end while
}
if (!max_keyframe_interval_ and add_packet->keyframe) {
if (!max_keyframe_interval_ and add_packet->keyframe and (video_stream_id==add_packet->packet->stream_index)) {
auto rit = pktQueue.rbegin();
int packet_count = 0;
while (rit != pktQueue.rend()) {