heif: Update to actual frame duration when the frame is decoded
bug: 139815242
test: test some 25fps files, and with local logs, duration should
show 40ms instead of the default 33ms.
Change-Id: Ibd10bda17634b1337349bfc9f69757f569d35972
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/237205
Commit-Queue: Chong Zhang <chz@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
Auto-Submit: Chong Zhang <chz@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
diff --git a/src/codec/SkHeifCodec.h b/src/codec/SkHeifCodec.h
index 2391e6f..bbcf722 100644
--- a/src/codec/SkHeifCodec.h
+++ b/src/codec/SkHeifCodec.h
@@ -106,6 +106,7 @@
}
Frame* appendNewFrame();
const Frame* frame(int i) const;
+ Frame* editFrameAt(int i);
int size() const {
return static_cast<int>(fFrames.size());
}