mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
Fix IFR parsing
This commit is contained in:
parent
8c3f93d6bf
commit
9592a8a4ff
@ -265,7 +265,7 @@ import java.util.List;
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoked to pass stream data. The data passed should not include 4 byte NAL unit prefixes.
|
||||
* Invoked to pass stream data. The data passed should not include the 3 byte start code.
|
||||
*
|
||||
* @param data Holds the data being passed.
|
||||
* @param offset The offset of the data in {@code data}.
|
||||
@ -283,6 +283,7 @@ import java.util.List;
|
||||
ifrLength += readLength;
|
||||
|
||||
scratchSliceType.reset(ifrData, ifrLength);
|
||||
scratchSliceType.skipBits(8);
|
||||
// first_mb_in_slice
|
||||
int len = scratchSliceType.peekExpGolombCodedNumLength();
|
||||
if ((len == -1) || (len > scratchSliceType.bitsLeft())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user