[MSE] Fix comparsion with uninitialized greatestDecodeDuration
authoraboya@igalia.com <aboya@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Sep 2018 13:47:48 +0000 (13:47 +0000)
committeraboya@igalia.com <aboya@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Sep 2018 13:47:48 +0000 (13:47 +0000)
commitc120f6fe8d78fe4881e19bb5d7170f805e29ecd2
treebb3cee702e08dee10cedd6e82c8c76c0fd2dc662
parentc6673fa0ca3b070c36f43a8e365cb5b38598cd88
[MSE] Fix comparsion with uninitialized greatestDecodeDuration
https://bugs.webkit.org/show_bug.cgi?id=189805

Reviewed by Michael Catanzaro.

This bug was causing greatestDecodeDuration to never be initialized,
which in turned caused unintended frame erase as distant appends where
not being recognized as distinct coded frame groups.

A test reproducing the sequence of appends that caused unintended
frame deletion has also been added (media-source-append-out-of-order.html).

* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::sourceBufferPrivateDidReceiveSample):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/media/media-source/media-source-append-out-of-order-expected.txt [new file with mode: 0644]
LayoutTests/media/media-source/media-source-append-out-of-order.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediasource/SourceBuffer.cpp