Media Viewer: Fix video preview errors in Firefox (#3602)
This commit is contained in:
parent
01dfd7f181
commit
422369f298
@ -178,7 +178,7 @@ export function createImageBitmap(
|
|||||||
for (let i = 0; i < frame.data.length; i++) {
|
for (let i = 0; i < frame.data.length; i++) {
|
||||||
const plane = frame.data[i];
|
const plane = frame.data[i];
|
||||||
for (let y = 0; y < plane.length; y++) {
|
for (let y = 0; y < plane.length; y++) {
|
||||||
const row = plane[y];
|
const row = plane[y].subarray(0, image.codedWidth * 4);
|
||||||
frameData.data.set(row, idx);
|
frameData.data.set(row, idx);
|
||||||
idx += row.length;
|
idx += row.length;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user