Fix for movi with LIST('rec ')

This commit is contained in:
Dustin 2022-01-18 15:46:25 -07:00
parent 1a1dc44b84
commit 58a2ca6083

View file

@ -404,10 +404,15 @@ public class AviExtractor implements Extractor {
sampleSize = byteBuffer.getInt(); sampleSize = byteBuffer.getInt();
sampleTrack = idTrackMap.get(id); sampleTrack = idTrackMap.get(id);
if (sampleTrack == null) { if (sampleTrack == null) {
if (id != JUNK) { if (id == ListBox.LIST) {
Log.w(TAG, "Unknown tag=" + AviUtil.toString(id) + " pos=" + (input.getPosition() - 8) + " size=" + sampleSize + " moviEnd=" + moviEnd); seekPosition.position = input.getPosition() + 4;
} } else {
seekPosition.position = input.getPosition() + sampleSize; seekPosition.position = input.getPosition() + sampleSize;
if (id != JUNK) {
Log.w(TAG, "Unknown tag=" + AviUtil.toString(id) + " pos=" + (input.getPosition() - 8)
+ " size=" + sampleSize + " moviEnd=" + moviEnd);
}
}
return RESULT_SEEK; return RESULT_SEEK;
} else { } else {
//Log.d(TAG, "Sample pos=" + (input.getPosition() - 8) + " size=" + sampleSize + " video=" + sampleTrack.isVideo()); //Log.d(TAG, "Sample pos=" + (input.getPosition() - 8) + " size=" + sampleSize + " video=" + sampleTrack.isVideo());