From afd57ec3073cea3ec11dd386e1434eaa69b254dc Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 22 Jan 2021 19:25:38 -0500 Subject: [PATCH] Add a base extractFrame that just treats the entire buffer as a frame --- src/zm_rtsp_server_device_source.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/zm_rtsp_server_device_source.cpp b/src/zm_rtsp_server_device_source.cpp index c18ec6132..921bdb03e 100644 --- a/src/zm_rtsp_server_device_source.cpp +++ b/src/zm_rtsp_server_device_source.cpp @@ -3,7 +3,6 @@ ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** -** v4l2DeviceSource.cpp ** ** ZoneMinder Live555 source ** @@ -188,3 +187,10 @@ std::list< std::pair > ZoneMinderDeviceSource::splitFrame } return frameList; } + +// extract a frame +unsigned char* ZoneMinderDeviceSource::extractFrame(unsigned char* frame, size_t& size, size_t& outsize) { + outsize = size; + size = 0; + return frame; +}