Fix output APNG not working with ffmpeg.

This commit is contained in:
comfyanonymous
2023-11-24 18:24:19 -05:00
parent 8ad5d494d5
commit e020ab61f9
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ export function getPngMetadata(file) {
const length = dataView.getUint32(offset);
// Get the chunk type
const type = String.fromCharCode(...pngData.slice(offset + 4, offset + 8));
if (type === "tEXt") {
if (type === "tEXt" || type == "comf") {
// Get the keyword
let keyword_end = offset + 8;
while (pngData[keyword_end] !== 0) {