mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Fix for movi with LIST('rec ')
This commit is contained in:
parent
1a1dc44b84
commit
58a2ca6083
1 changed files with 8 additions and 3 deletions
|
|
@ -404,10 +404,15 @@ public class AviExtractor implements Extractor {
|
|||
sampleSize = byteBuffer.getInt();
|
||||
sampleTrack = idTrackMap.get(id);
|
||||
if (sampleTrack == null) {
|
||||
if (id != JUNK) {
|
||||
Log.w(TAG, "Unknown tag=" + AviUtil.toString(id) + " pos=" + (input.getPosition() - 8) + " size=" + sampleSize + " moviEnd=" + moviEnd);
|
||||
if (id == ListBox.LIST) {
|
||||
seekPosition.position = input.getPosition() + 4;
|
||||
} else {
|
||||
seekPosition.position = input.getPosition() + sampleSize;
|
||||
if (id != JUNK) {
|
||||
Log.w(TAG, "Unknown tag=" + AviUtil.toString(id) + " pos=" + (input.getPosition() - 8)
|
||||
+ " size=" + sampleSize + " moviEnd=" + moviEnd);
|
||||
}
|
||||
}
|
||||
seekPosition.position = input.getPosition() + sampleSize;
|
||||
return RESULT_SEEK;
|
||||
} else {
|
||||
//Log.d(TAG, "Sample pos=" + (input.getPosition() - 8) + " size=" + sampleSize + " video=" + sampleTrack.isVideo());
|
||||
|
|
|
|||
Loading…
Reference in a new issue