Refactor stream selection for seeking in FFmpegDemuxer
The current logic is not taking into account that streams can be disabled and is heavily tied to the assumption of max 1 audio/video stream. This refactoring strives to preserve the original logic as much as possible, but also disregards disabled streams when searching for the preferred seeking stream, and generalizes that logic to potentially handle multiple audio/video streams. BUG=641451 Review-Url: https://codereview.chromium.org/2281843002 Cr-Commit-Position: refs/heads/master@{#414836}
Showing
Please register or sign in to comment