Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1989)

Issue 2563183002: Fix up missing timestamps in FFmpegDemuxer. (Closed)

Created:
4 years ago by liberato (no reviews please)
Modified:
3 years, 12 months ago
Reviewers:
DaleCurtis, wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix up missing timestamps in FFmpegDemuxer. Previously, we would DCHECK if FFmpeg provded no timestamp for a buffer. We now replace this with zero for the first packet, and with an advance over the previous buffer for later ones. The rationale is that bad media might cause this, and we previously had a DCHECK to catch it. This makes the behavior consistent even in releaes builds. BUG=665305, 673079 TEST=ffmpeg_regression_tests Committed: https://crrev.com/722dfe42527ed575678e5145ef3e58f03013030a Cr-Commit-Position: refs/heads/master@{#439933}

Patch Set 1 #

Total comments: 1

Patch Set 2 : throws an error instead #

Patch Set 3 : added demuxer status to media log #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M media/ffmpeg/ffmpeg_regression_tests.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 1 chunk +3 lines, -0 lines 1 comment Download
M media/filters/ffmpeg_demuxer.cc View 1 2 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 30 (21 generated)
liberato (no reviews please)
https://codereview.chromium.org/2563183002/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/2563183002/diff/1/media/filters/ffmpeg_demuxer.cc#newcode560 media/filters/ffmpeg_demuxer.cc:560: if (!fixup_negative_timestamps_ && !warned_about_missing_timestamps_) { "!fixup..." to prevent a ...
4 years ago (2016-12-12 22:24:48 UTC) #11
DaleCurtis
Why fixup vs error out?
4 years ago (2016-12-12 23:04:25 UTC) #12
liberato (no reviews please)
On 2016/12/12 23:04:25, DaleCurtis wrote: > Why fixup vs error out? i was planning to ...
4 years ago (2016-12-12 23:10:41 UTC) #13
liberato (no reviews please)
i remember now -- i wasn't sure if i was breaking existing behavior outside of ...
4 years ago (2016-12-13 22:15:26 UTC) #18
DaleCurtis
lgtm though we'll want to watch the UMA statistics for this error to see if ...
4 years ago (2016-12-14 00:22:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2563183002/40001
4 years ago (2016-12-20 21:05:36 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-20 23:50:32 UTC) #26
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/722dfe42527ed575678e5145ef3e58f03013030a Cr-Commit-Position: refs/heads/master@{#439933}
4 years ago (2016-12-20 23:54:36 UTC) #28
wolenetz
3 years, 12 months ago (2016-12-21 20:10:55 UTC) #30
Message was sent while issue was closed.
For posterity, change description mismatches the change: (instead of fixup, it's
really error-out).
Already landed, so this is just a note for anyone who might similarly have been
briefly confused :)

https://codereview.chromium.org/2563183002/diff/40001/media/filters/ffmpeg_de...
File media/filters/ffmpeg_demuxer.h (right):

https://codereview.chromium.org/2563183002/diff/40001/media/filters/ffmpeg_de...
media/filters/ffmpeg_demuxer.h:238: // Allow FFmpegDemxuerStream to notify us
about an error.
nit: typo

Powered by Google App Engine
This is Rietveld 408576698