From e3234de097bb8282895b0674e0e1cb423e184f0e Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Mon, 15 May 2023 10:55:35 +0800 Subject: [PATCH] fix: The decoder task crashed --- DSView/pv/data/decoderstack.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DSView/pv/data/decoderstack.cpp b/DSView/pv/data/decoderstack.cpp index 7ac840dd..7383c967 100644 --- a/DSView/pv/data/decoderstack.cpp +++ b/DSView/pv/data/decoderstack.cpp @@ -546,6 +546,10 @@ void DecoderStack::decode_data(const uint64_t decode_start, const uint64_t decod continue; } + if (_is_capture_end && i == _snapshot->get_mipmap_sample_count()){ + break; + } + uint64_t chunk_end = end_index; for (int j =0 ; j < logic_di->dec_num_channels; j++) {