Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for negative PTS values in video files.
In some videos uploaded from cameras, the first frame in presentation order is not the first frame in decode order. The metadata correctly records this. However, FFmpeg is adjusting timestamps so that the first frame in decode order is at time 0. As a result, the first frame in presentation order has a negative timestamp, which produces an error. The workaround is to pass "advanced_editlist=0" in the demuxer options. This avoids the problem until FFmpeg fixes it properly. BUG=723537 TEST=tested locally with example from comment #6 in the bug (cherry picked from commit 916a829) TBR=jrummell@chromium.org Change-Id: I2b515dff06da2930339592ff4e84ec69da635c91 Reviewed-on: https://chromium-review.googlesource.com/526752 Commit-Queue: John Rummell <jrummell@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#477887} Reviewed-on: https://chromium-review.googlesource.com/546916 Reviewed-by: Chrome Cunningham <chcunningham@chromium.org> Cr-Commit-Position: refs/branch-heads/3112@{#457} Cr-Branched-From: b6460e2-refs/heads/master@{#474897}
- Loading branch information