修复一处codoc值未捕获导致的崩溃

This commit is contained in:
Waken 2023-12-13 16:32:50 +08:00
parent d8c234283b
commit 958c8b7166
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
# SOFTWARE.
#
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.1.3)
#
# Load custom modules

View File

@ -115,7 +115,7 @@ void DecoderImp::onDecode(int stream, int codecid, int flags, int64_t pts, int64
onFrame(stream, frame);
return;
}
ref.second.inputFrame(frame, [&](uint64_t dts, uint64_t pts, const Buffer::Ptr &buffer, bool) {
ref.second.inputFrame(frame, [&,codec](uint64_t dts, uint64_t pts, const Buffer::Ptr &buffer, bool) {
onFrame(stream, Factory::getFrameFromBuffer(codec, buffer, dts, pts));
});
}