From b87e45912531c16e59e4dee72545e2bd41db04ea Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 1 Dec 2017 14:48:30 -0500 Subject: [PATCH] still corrupting memory --- src/zm_monitor.cpp | 1 + src/zm_videostore.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 18234459d..9c18bf179 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2745,6 +2745,7 @@ Monitor *Monitor::Load( unsigned int p_id, bool load_zones, Purpose purpose ) { int Monitor::Capture() { static int FirstCapture = 1; // Used in de-interlacing to indicate whether this is the even or odd image + GetLastEventId(); unsigned int index = image_count % image_buffer_count; if ( (index == shared_data->last_read_index) && (function > MONITOR) ) { diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index c4f599182..a7cadfbb3 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -46,7 +46,7 @@ VideoStore::VideoStore( packets_written = 0; frame_count = 0; - av_register_all(); + FFMPEGInit(); Info("Opening video storage stream %s format: %s", filename, format);