Bug 140929

Summary: [MSE] Setting timestampOffset does not change the timestamps in the actual sample, leading to visual and audible errors.
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
darin: review+
Patch for landing
none
Follow-up patch to fix broken test none

Description Jer Noble 2015-01-27 01:26:18 PST
[MSE] Setting timestampOffset does not change the timestamps in the actual sample, leading to visual and audible errors.
Comment 1 Jer Noble 2015-01-27 01:33:37 PST
Created attachment 245430 [details]
Patch
Comment 2 Darin Adler 2015-01-28 09:23:23 PST
Comment on attachment 245430 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=245430&action=review

> Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:550
> +    timingInfoArray.resize(itemCount);

This should use grow rather than resize since we know itemCount is >= timingInfoArray.size().
Comment 3 Jer Noble 2015-02-03 08:42:31 PST
Created attachment 245942 [details]
Patch for landing
Comment 4 Jer Noble 2015-02-03 12:24:34 PST
<rdar://problem/19627056>
Comment 5 WebKit Commit Bot 2015-02-03 13:09:21 PST
Comment on attachment 245942 [details]
Patch for landing

Clearing flags on attachment: 245942

Committed r179564: <http://trac.webkit.org/changeset/179564>
Comment 6 Alexey Proskuryakov 2015-02-03 14:08:53 PST
This broke http/tests/media/media-source/mediasource-config-change-mp4-v-framerate.html on some testers:

https://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fmedia%2Fmedia-source%2Fmediasource-config-change-mp4-v-framerate.html
Comment 7 Jer Noble 2015-02-03 15:13:56 PST
Created attachment 245974 [details]
Follow-up patch to fix broken test
Comment 8 WebKit Commit Bot 2015-02-03 16:07:55 PST
Comment on attachment 245974 [details]
Follow-up patch to fix broken test

Clearing flags on attachment: 245974

Committed r179577: <http://trac.webkit.org/changeset/179577>