Skip to content

Commit 90090dc

Browse files
committed
Handle case with no rotation/flip for ImageDecoder.
1 parent b46fc2f commit 90090dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5758,7 +5758,8 @@
57585758
metadata without further decoding, assign that to |timestamp|.
57595759
4. Otherwise, assign `0` to |timestamp|.
57605760
4. If {{ImageDecoder/[[encoded data]]}} contains orientation metadata
5761-
describe it as |rotation| and |flip|.
5761+
describe it as |rotation| and |flip|, otherwise set |rotation| to 0
5762+
and |flip| to false.
57625763
5. Assign {{ImageDecodeResult/image}} with the result of running the
57635764
[=Create a VideoFrame=] algorithm with |output|, |timestamp|,
57645765
|duration|, |rotation|, and |flip|.
@@ -5826,7 +5827,8 @@
58265827
metadata without further decoding, assign that to |timestamp|.
58275828
4. Otherwise, assign `0` to |timestamp|.
58285829
17. If {{ImageDecoder/[[encoded data]]}} contains orientation metadata
5829-
describe it as |rotation| and |flip|.
5830+
describe it as |rotation| and |flip|, otherwise set |rotation| to 0
5831+
and |flip| to false.
58305832
18. Assign {{ImageDecodeResult/image}} with the result of running the
58315833
[=Create a VideoFrame=] algorithm with |output|, |timestamp|,
58325834
|duration|, |rotation|, and |flip|.

0 commit comments

Comments
 (0)