simplified decoding algorithm (using only previous keyframes)