Skip to content

Commit

Permalink
Refactor WebM extractor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ojw28 committed Jul 9, 2014
1 parent 9e16dec commit 686ac2a
Show file tree
Hide file tree
Showing 6 changed files with 1,122 additions and 822 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.google.android.exoplayer.chunk.WebmMediaChunk;
import com.google.android.exoplayer.dash.mpd.Representation;
import com.google.android.exoplayer.parser.SegmentIndex;
import com.google.android.exoplayer.parser.webm.DefaultWebmExtractor;
import com.google.android.exoplayer.parser.webm.WebmExtractor;
import com.google.android.exoplayer.upstream.DataSource;
import com.google.android.exoplayer.upstream.DataSpec;
Expand Down Expand Up @@ -85,7 +86,7 @@ public DashWebmChunkSource(DataSource dataSource, FormatEvaluator evaluator,
formats[i] = representations[i].format;
maxWidth = Math.max(formats[i].width, maxWidth);
maxHeight = Math.max(formats[i].height, maxHeight);
extractors.put(formats[i].id, new WebmExtractor());
extractors.put(formats[i].id, new DefaultWebmExtractor());
this.representations.put(formats[i].id, representations[i]);
}
this.maxWidth = maxWidth;
Expand Down
Loading

0 comments on commit 686ac2a

Please sign in to comment.