Commit 0717e9fd0a2722687b1b8a08c7e05f363950eb73
1 parent
641ca6ba
代码同步
Showing
3 changed files
with
17 additions
and
10 deletions
src/ai_engine_module/VPTProcess.cpp
src/ai_platform/MultiSourceProcess.cpp
... | ... | @@ -2210,7 +2210,7 @@ bool CMultiSourceProcess::CheckTime() { |
2210 | 2210 | nYear = info->tm_year + 1900; |
2211 | 2211 | nMonth = info->tm_mon + 1; |
2212 | 2212 | nDay = info->tm_mday; |
2213 | - if ((nYear == 2023 && nMonth <= 12) || (nYear == 2024 && nMonth <= 7)) | |
2213 | + if (nYear == 2024 && nMonth <= 12) | |
2214 | 2214 | { |
2215 | 2215 | return true; |
2216 | 2216 | } | ... | ... |
src/decoder/dvpp/DvppDecoder.cpp
... | ... | @@ -107,18 +107,25 @@ bool DvppDecoder::init(FFDecConfig cfg){ |
107 | 107 | return false; |
108 | 108 | } |
109 | 109 | |
110 | - bool bRet = init_dvpp(cfg); | |
111 | - if(!bRet){ | |
112 | - return false; | |
113 | - } | |
110 | + do | |
111 | + { | |
112 | + bool bRet = init_dvpp(cfg); | |
113 | + if(!bRet){ | |
114 | + break; | |
115 | + } | |
114 | 116 | |
115 | - m_cfg = cfg; | |
117 | + m_cfg = cfg; | |
116 | 118 | |
117 | - decode_finished_cbk = cfg.decode_finished_cbk; | |
119 | + decode_finished_cbk = cfg.decode_finished_cbk; | |
118 | 120 | |
119 | - m_bFinished = false; | |
121 | + m_bFinished = false; | |
120 | 122 | |
121 | - return true; | |
123 | + return true; | |
124 | + } while (0); | |
125 | + | |
126 | + release_ffmpeg(); | |
127 | + | |
128 | + return false; | |
122 | 129 | } |
123 | 130 | |
124 | 131 | AVCodecContext* DvppDecoder::init_FFmpeg(FFDecConfig config){ | ... | ... |