From 83e41a2ac316be500a7be633fbf748693151f747 Mon Sep 17 00:00:00 2001 From: pansen <pansen626@sina.com> Date: 星期五, 15 三月 2019 11:09:42 +0800 Subject: [PATCH] 保存第一张i帧作为底图 --- QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.h b/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.h index 235cbed..dcfa1d2 100644 --- a/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.h +++ b/QiaoJiaSystem/GB28181DecoderModel/FFmpegDecoderJPG.h @@ -199,7 +199,8 @@ int stopWrite(); //瀵筽acket鍋氳浆鎹� - void conversion(void *packet, const long int &firstKeyPts, const long int &firstKeyDts, void *inVideoStream, unsigned long int frame_index = 0); + void conversion(void *packet, const long int &firstKeyPts, const long int &firstKeyDts, void *inVideoStream, + unsigned long int frame_index = 0); bool m_bstartWrite = {false}; bool m_bFirstKeyFrame = {false}; @@ -226,6 +227,7 @@ int m_gpuIdx; int m_fps; bool m_PackageState; + bool m_SnapshotNotSaveRet{true}; std::string m_camIdx; MyQueue<frameBuffInfo *> m_rtpQueue; -- Gitblit v1.8.0