Fix race condition in decoder and reading invalid frames after seek
Fix race condition in decoder and reading invalid frames after seek

scanner-research/scanner,scanner-research/scanner,scanner-research/scanner,scanner-research/scanner