-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebM file with Vorbis track plays in burst
https://bugs.webkit.org/show_bug.cgi?id=273866 rdar://124880261 Reviewed by Eric Carlson. Add support for Block containing multiple frames. Previously we would create as many CMSampleBuffer as found in the block, but all those samples would have the timestamp of the Block. We now accrue the duration of each frame and properly increment the sample's timestamp accordingly. Manually verified that file plays okay * Source/WebCore/platform/graphics/cocoa/SourceBufferParserWebM.cpp: (WebCore::WebMParser::OnSimpleBlockBegin): (WebCore::WebMParser::OnSimpleBlockEnd): (WebCore::WebMParser::OnFrame): (WebCore::WebMParser::VideoTrackData::consumeFrameData): (WebCore::WebMParser::AudioTrackData::consumeFrameData): * Source/WebCore/platform/graphics/cocoa/SourceBufferParserWebM.h: (WebCore::WebMParser::TrackData::consumeFrameData): Canonical link: https://commits.webkit.org/278665@main
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters