Media: Reject negative initial timestamps in FFmpegDemuxer

Desktop / Chromium - sandersd [chromium.org] - 19 April 2017 14:31 EDT

During recent changes, it became possible for the first video buffer timestamp in a stream to be negative. This change restores the invariant that video buffer timestampes are non-negative, by emitting a demuxer error in this case.

BUG=710845

Review-Url: https://codereview.chromium.org/2822063002 Cr-Commit-Position: refs/heads/master@{#465678}

7ef29df Media: Reject negative initial timestamps in FFmpegDemuxer.
media/filters/ffmpeg_demuxer.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share