From: Joel Holdsworth Date: Sat, 25 Jan 2014 13:27:41 +0000 (+0000) Subject: Fixed off-by-one in DecoderStack::decode_proc X-Git-Tag: pulseview-0.2.0~107 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c02f1e09ee27e5e39a629c607d4b0e14484ae6aa;p=pulseview.git Fixed off-by-one in DecoderStack::decode_proc --- diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index b8eff67f..cb335be0 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -172,7 +172,7 @@ void DecoderStack::decode_proc(shared_ptr data) const shared_ptr &snapshot = snapshots.front(); - const int64_t sample_count = snapshot->get_sample_count() - 1; + const int64_t sample_count = snapshot->get_sample_count(); const unsigned int chunk_sample_count = DecodeChunkLength / snapshot->unit_size();