1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 21:14:43 +01:00

Update Ogg.php

This commit is contained in:
Daniil Gentili 2023-11-13 00:08:40 +01:00 committed by GitHub
parent d0d9afb80a
commit ab79e2e5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,6 +543,7 @@ final class Ogg
public static function validateOgg(LocalFile|RemoteUrl|ReadableStream $f): void
{
$ok = false;
$e = null;
try {
try {
$cancel = new DeferredCancellation;
@ -551,10 +552,10 @@ final class Ogg
} finally {
$cancel->cancel();
}
} catch (\Throwable) {
} catch (\Throwable $e) {
}
if (!$ok) {
throw new AssertionError("The passed file was not generated by MadelineProto or @libtgvoipbot, please pre-convert it using @libtgvoipbot or install FFI and ffmpeg to perform realtime conversion!");
throw new AssertionError("The passed file was not generated by MadelineProto or @libtgvoipbot, please pre-convert it using @libtgvoipbot or install FFI and ffmpeg to perform realtime conversion!", 0, $e);
}
}