Fix initial track selection in ffmpeg demuxer

Desktop / Chromium - Sergey Volk [google.com] - 10 October 2017 21:50 EDT

Current initial track selection logic is incorrect for files with unsupported audio/video streams. Those streams are included into detected_a/v_track_count, but we want only the first SUPPORTED audio and video tracks to be enabled initially.

Bug: 764330 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Iec89964dff563ef2b9739ddb3091f03cba798824 Reviewed-on: https://chromium-review.googlesource.com/710803

4c1fafe Fix initial track selection in ffmpeg demuxer
media/filters/ffmpeg_demuxer.cc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Upstream: git.chromium.org


  • Share