f
This commit is contained in:
parent
297ddc6c60
commit
d49ef8be19
1 changed files with 2 additions and 2 deletions
|
@ -446,8 +446,6 @@ proc decodeSOS(state: var DecoderState) =
|
||||||
state.successiveApproxLow = aa and 15
|
state.successiveApproxLow = aa and 15
|
||||||
state.successiveApproxHigh = aa shr 4
|
state.successiveApproxHigh = aa shr 4
|
||||||
|
|
||||||
state.reset()
|
|
||||||
|
|
||||||
if state.progressive:
|
if state.progressive:
|
||||||
if state.spectralStart > 63 or state.spectralEnd > 63:
|
if state.spectralStart > 63 or state.spectralEnd > 63:
|
||||||
failInvalid()
|
failInvalid()
|
||||||
|
@ -467,6 +465,8 @@ proc decodeSOS(state: var DecoderState) =
|
||||||
if len != 0:
|
if len != 0:
|
||||||
failInvalid()
|
failInvalid()
|
||||||
|
|
||||||
|
state.reset()
|
||||||
|
|
||||||
proc fillBitBuffer(state: var DecoderState) =
|
proc fillBitBuffer(state: var DecoderState) =
|
||||||
## When we are low on bits, we need to call this to populate some more.
|
## When we are low on bits, we need to call this to populate some more.
|
||||||
while state.bitsBuffered < 24:
|
while state.bitsBuffered < 24:
|
||||||
|
|
Loading…
Reference in a new issue