Only calculate keyframe interval using video stream
parent
c2946f203e
commit
f07612c25f
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue