Add longer variant to VideoSample.draw

This commit is contained in:
Vanilagy
2025-07-15 11:49:33 +02:00
parent c5d299c4ec
commit cf0bbe896a
6 changed files with 143 additions and 14 deletions
+1
View File
@@ -737,6 +737,7 @@ class VideoDecoderWrapper extends DecoderWrapper<VideoSample> {
// Round the timestamps to the time resolution
sample.setTimestamp(Math.round(sample.timestamp * this.timeResolution) / this.timeResolution);
sample.setDuration(Math.round(sample.duration * this.timeResolution) / this.timeResolution);
sample.setRotation(this.rotation);
this.onSample(sample);
}