Skip to content

Commit

Permalink
VideoDecoderConfigSize should be unsigned long rather than `unsigne…
Browse files Browse the repository at this point in the history
…d long long`

https://bugs.webkit.org/show_bug.cgi?id=274012
rdar://problem/128291404

Reviewed by Youenn Fablet.

This patch aligns with web-specification [1]:

[1] https://w3c.github.io/webcodecs/#video-decoder-config

Which uses 'unsigned long' instead of current 'unsigned long long' for
codedWidth, codedHeight, displayAspectWidth and displayAspectHeight.

* Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoderConfig.idl:

Canonical link: https://commits.webkit.org/279370@main
  • Loading branch information
Ahmad Saleem committed May 28, 2024
1 parent e522f11 commit 5282ec7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Apple Inc. All rights reserved.
* Copyright (C) 2022-2024 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand All @@ -23,8 +23,9 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/

// https://w3c.github.io/webcodecs/#video-decoder-config

typedef [EnforceRange] unsigned long long WebCodecsVideoDecoderConfigSize;
typedef [EnforceRange] unsigned long WebCodecsVideoDecoderConfigSize;

[
Conditional=WEB_CODECS,
Expand Down

0 comments on commit 5282ec7

Please sign in to comment.