Put back test for out of order packets. These buffers can take up a lot of ram even though they may not be needed.

This commit is contained in:
Isaac Connor
2024-02-16 11:29:15 -05:00
parent 2fd7c089e3
commit 01ebcad29c

View File

@@ -149,12 +149,12 @@ bool VideoStore::open() {
const AVDictionaryEntry *entry = av_dict_get(opts, "reorder_queue_size", nullptr, AV_DICT_MATCH_CASE);
if (entry) {
reorder_queue_size = std::stoul(entry->value);
Debug(1, "reorder_queue_size set to %zu", reorder_queue_size);
// remove it to prevent complaining later.
av_dict_set(&opts, "reorder_queue_size", nullptr, AV_DICT_MATCH_CASE);
} else {
} else if (monitor->has_out_of_order_packets()) {
reorder_queue_size = monitor->get_max_keyframe_interval();
}
Debug(1, "reorder_queue_size set to %zu", reorder_queue_size);
}
oc->metadata = pmetadata;