Commit 758b0072afc10966d75b753e75102d94a3127af3

Authored by Hu Chunming
1 parent 325d0b20

代码优化

src/reprocessing_module/save_snapshot_reprocessing.cpp
... ... @@ -104,12 +104,10 @@ void save_snapshot_reprocessing::save_img_process() {
104 104  
105 105 bool bPost = false;
106 106 if(!cur_image.file_path.empty()){
107   - bool bSaved = jpegUtil.jpeg_encode(cur_image.img_info.pic_desc, cur_image.file_path);
108   - if(!bSaved){
  107 + bPost = jpegUtil.jpeg_encode(cur_image.img_info.pic_desc, cur_image.file_path);
  108 + if(!bPost){
109 109 LOG_ERROR("jpeg_encode failed");
110   - } else {
111   - bPost = true;
112   - }
  110 + }
113 111 } else {
114 112 bPost = true;
115 113 }
... ...