From c02f1e09ee27e5e39a629c607d4b0e14484ae6aa Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 25 Jan 2014 13:27:41 +0000 Subject: [PATCH] Fixed off-by-one in DecoderStack::decode_proc --- pv/data/decoderstack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2