Skip to content

Commit

Permalink
Fix synchronous decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Mar 27, 2023
1 parent 62f48a6 commit 3aaf3da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/image/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ dwv.image.SynchPixelBufferDecoder = function (algoName, numberOfData) {
// send decode events
this.ondecodeditem({
data: [decodedBuffer],
index: info.itemNumber
dataIndex: info.dataIndex,
numberOfItems: info.numberOfItems,
itemNumber: info.itemNumber
});
// decode end?
if (decodeCount === numberOfData) {
Expand Down

0 comments on commit 3aaf3da

Please sign in to comment.