Skip to content

[local] feat(previews): previews and tests for large remote videos w/o full download - #54915

Merged
1 commit merged into
masterfrom
pr/invario/53952
Sep 5, 2025
Merged

[local] feat(previews): previews and tests for large remote videos w/o full download#54915
1 commit merged into
masterfrom
pr/invario/53952

Conversation

@artonge

@artongeartonge commented Sep 5, 2025

Copy link
Copy Markdown
Collaborator

Local copy of #53952 for CI
Closes#53469

…ownload
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
@artonge
artonge requested a review from a team as a code ownerSeptember 5, 2025 08:09
@artonge
artonge requested review from ArtificialOwl, salmart-dev and sorbaugh and removed request for a teamSeptember 5, 2025 08:09
@provokateurinprovokateurin added this to the Nextcloud 33 milestone Sep 5, 2025
@artongeartonge closed this Sep 5, 2025
auto-merge was automatically disabled September 5, 2025 08:18

Pull request was closed

@artongeartonge reopened this Sep 5, 2025
@artongeartonge closed this pull request by merging all changes into master in 05b4403Sep 5, 2025
@artonge
artonge deleted the pr/invario/53952 branch September 5, 2025 09:05
// 1 = read an additional 8 bytes after the label to get the 64 bit
// size of the atom. Needed for large atoms like 'mdat' (the video data)
if ($atomSize === 1) {
$atomSize = (int)hexdec(bin2hex(stream_get_contents($content, 8, (int)($offset + 8))));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just adding it here also after discussion in #53952 possible infinite loop if damaged/maliciously formatted file: the 8 bytes evaluates to 0, making $offset += $atomSize not stepping.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Movie preview not generated on remote storages if file > 5MiB

5 participants

@artonge@provokateurin@Vislike@skjnldsv@invario