Commit 58a2ca60 by Dustin

Fix for movi with LIST('rec ')

parent 1a1dc44b
...@@ -404,10 +404,15 @@ public class AviExtractor implements Extractor { ...@@ -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;
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; 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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment