[Webkit-unassigned] [Bug 237473] New: MediaTime::invalidTime() isn't convertible without loss into CMTime

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 4 07:49:17 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=237473

            Bug ID: 237473
           Summary: MediaTime::invalidTime() isn't convertible without
                    loss into CMTime
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jean-yves.avenard at apple.com
                CC: jer.noble at apple.com

Consider the following code:
```
        auto invalid = MediaTime::invalidTime();
        auto cminvalid = PAL::toCMTime(invalid);
        auto invalid2 = PAL::toMediaTime(cminvalid);
        ASSERT(invalid == invalid2);
```

the assertion will fail.

The reason is that PAL::toCMTime(MediaTime::invalidTime()) will generate a CMTime that has the flag kCMTimeFlags_HasBeenRounded set.

This causes failure here 
https://webkit-search.igalia.com/webkit/rev/ceb5e25a803df6cd6ea1c45859e4e03bbf659f75/Source/WebKit/Shared/mac/MediaFormatReader/MediaSampleByteRange.cpp#49

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220304/39f9a45f/attachment-0001.htm>


More information about the webkit-unassigned mailing list