Issue #1979 Fix Redbook frame issue parsing redbook data with a default header at the end of the buffer.

Change-Id: I30d89f84bbecf3250f491106b337c9c12ec88bb9

Former-commit-id: d9b49b7a84 [formerly 13c449eb5d] [formerly d9b49b7a84 [formerly 13c449eb5d] [formerly b0f07f4a83 [formerly 90e1c8b65baad0af8f8a7a27b6b308b504c1be27]]]
Former-commit-id: b0f07f4a83
Former-commit-id: 44f4a99def [formerly f3428938df]
Former-commit-id: 427ffaed29
This commit is contained in:
Brad Gonzales 2013-05-06 17:40:39 -05:00
parent b90331aa1d
commit 550a5c04e8

View file

@ -37,6 +37,7 @@ import org.apache.commons.logging.LogFactory;
* 20080512 1131 jkorman Initial implementation.
* Apr 29, 2013 1958 bgonzale Added class RedbookBlockHeader,
* and nested Factory interface.
* May 06, 2013 1979 bgonzale Catch Header at the end of buffer.
*
* </pre>
*
@ -76,7 +77,7 @@ public abstract class RedbookBlock {
this.header = header;
hasLength = (this.header.hdr & LEN_MASK) == 0;
hasLength = ((this.header.hdr & LEN_MASK) == 0 && data.hasRemaining());
hasChkSum = (this.header.hdr & CHKSUM_MASK) == 0;