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

Issue 2635573002: Fix int-overflow due to absent stream timestamp (Closed)

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

Description

Fix int-overflow due to absent stream timestamp crbug.com/665305 introduced some fixes for buffers with no timestamps. However, if we did not receive a valid stream timestamp from the demuxer, the first buffer that we output can still end up having no timestamp (which eventually leads to an integer overflow in VideoRendererAlgorithm). This CL fixes the issue by reporting a demuxer error, rather than emitting a buffer with no timestamp and relying on the decoder to error out. BUG=665305, 656763 TEST= fixes media_pipeline_integration_fuzzer. Ran ffmpeg_integration_tests as ASAN/MSAN/UBSAN. Ran Media UTs Review-Url: https://codereview.chromium.org/2635573002 Cr-Commit-Position: refs/heads/master@{#443769} Committed: https://chromium.googlesource.com/chromium/src/+/067e03ca0fc3a4f64fc5f324d665e5c10268cd14

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -63 lines) Patch
M media/ffmpeg/ffmpeg_regression_tests.cc View 1 2 chunks +16 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 chunks +51 lines, -59 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
tguilbert
PTAL. Is this what you had in mind? Or is this too aggressive of a ...
3 years, 11 months ago (2017-01-13 22:02:12 UTC) #2
DaleCurtis
https://codereview.chromium.org/2635573002/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/2635573002/diff/1/media/filters/ffmpeg_demuxer.cc#newcode545 media/filters/ffmpeg_demuxer.cc:545: // timestamp. The decoder will rewrite the timestamps to ...
3 years, 11 months ago (2017-01-13 22:05:00 UTC) #5
tguilbert
https://codereview.chromium.org/2635573002/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/2635573002/diff/1/media/filters/ffmpeg_demuxer.cc#newcode545 media/filters/ffmpeg_demuxer.cc:545: // timestamp. The decoder will rewrite the timestamps to ...
3 years, 11 months ago (2017-01-13 23:52:02 UTC) #7
DaleCurtis
lgtm!
3 years, 11 months ago (2017-01-14 00:02:26 UTC) #8
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/2635573002/20001
3 years, 11 months ago (2017-01-14 00:13:57 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 02:15:04 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/067e03ca0fc3a4f64fc5f324d665...

Powered by Google App Engine
This is Rietveld 408576698