From cfb80e39cd0c69811f696b469aadc6b181453b0b Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Fri, 1 Mar 2019 15:49:23 +0300 Subject: [PATCH] Fixed http_stream.cpp --- src/http_stream.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http_stream.cpp b/src/http_stream.cpp index dbaca92d..6840002a 100644 --- a/src/http_stream.cpp +++ b/src/http_stream.cpp @@ -196,8 +196,9 @@ public: std::vector params; params.push_back(IMWRITE_JPEG_QUALITY); params.push_back(quality); - //cv::imencode(".jpg", frame, outbuf, params); //REMOVED FOR COMPATIBILITY - std::cerr << "cv::imencode call disabled!" << std::endl; + cv::imencode(".jpg", frame, outbuf, params); //REMOVED FOR COMPATIBILITY + // https://docs.opencv.org/3.4/d4/da8/group__imgcodecs.html#ga292d81be8d76901bff7988d18d2b42ac + //std::cerr << "cv::imencode call disabled!" << std::endl; size_t outlen = outbuf.size(); #ifdef _WIN32