Skip to content

Commit

Permalink
Default to 2*keyframe interval for reorder_queue_size
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 28, 2023
1 parent 413d072 commit ecec9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zm_videostore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ bool VideoStore::open() {
av_dict_set(&opts, "reorder_queue_size", nullptr, AV_DICT_MATCH_CASE);
} else {
if (monitor->has_out_of_order_packets()) {
reorder_queue_size = monitor->get_max_keyframe_interval();
reorder_queue_size = 2*monitor->get_max_keyframe_interval();
Debug(1, "reorder_queue_size set to %zu because we have out of order packets", reorder_queue_size);
}
}
Expand Down

0 comments on commit ecec9cb

Please sign in to comment.