Fix clusterfuzz DCHECK
Calling avformat_find_stream_info can change the number of streams in the AVFormatContext. This means that an index that we thought was pointing towards an audio stream can now be referring to a video stream after the call. This CL fixes the issue by finding a new audio stream after calling avformat_find_stream_info. Bug: 1025964 Change-Id: I81f661412dcb108865925a37cb254db89938d00f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1953395 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#722724}
Showing
Please register or sign in to comment