aboutsummaryrefslogtreecommitdiff
path: root/matroska
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-23 18:00:28 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-23 18:00:28 +0100
commit4529d07cc3f2f86a9dbb0d4802875a81d5c4c495 (patch)
tree1d20346dcb4d5de761dddd3e43e7e773d157abfe /matroska
parent9a2db97a779196fc670252d655c0f6bc159e9584 (diff)
downloadjellything-4529d07cc3f2f86a9dbb0d4802875a81d5c4c495.tar
jellything-4529d07cc3f2f86a9dbb0d4802875a81d5c4c495.tar.bz2
jellything-4529d07cc3f2f86a9dbb0d4802875a81d5c4c495.tar.zst
readme + add licence information
Diffstat (limited to 'matroska')
-rw-r--r--matroska/src/bin/experiment.rs5
-rw-r--r--matroska/src/bin/mkvdump.rs5
-rw-r--r--matroska/src/block.rs5
-rw-r--r--matroska/src/lib.rs5
-rw-r--r--matroska/src/matroska.rs5
-rw-r--r--matroska/src/read.rs5
-rw-r--r--matroska/src/size.rs5
-rw-r--r--matroska/src/unflatten.rs5
-rw-r--r--matroska/src/write.rs8
9 files changed, 46 insertions, 2 deletions
diff --git a/matroska/src/bin/experiment.rs b/matroska/src/bin/experiment.rs
index caeae09..9bc667c 100644
--- a/matroska/src/bin/experiment.rs
+++ b/matroska/src/bin/experiment.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use jellymatroska::{matroska::MatroskaTag, read::EbmlReader, write::EbmlWriter};
use std::{
fs::File,
diff --git a/matroska/src/bin/mkvdump.rs b/matroska/src/bin/mkvdump.rs
index d5b6de4..6f2e063 100644
--- a/matroska/src/bin/mkvdump.rs
+++ b/matroska/src/bin/mkvdump.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use jellymatroska::{matroska::MatroskaTag, read::EbmlReader};
use std::{fs::File, io::BufReader};
diff --git a/matroska/src/block.rs b/matroska/src/block.rs
index 9e66353..c887a91 100644
--- a/matroska/src/block.rs
+++ b/matroska/src/block.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{read::ReadExt, write::write_vint};
use anyhow::Result;
use std::io::Cursor;
diff --git a/matroska/src/lib.rs b/matroska/src/lib.rs
index 0bc9cc3..b86af44 100644
--- a/matroska/src/lib.rs
+++ b/matroska/src/lib.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
pub mod block;
pub mod matroska;
pub mod read;
diff --git a/matroska/src/matroska.rs b/matroska/src/matroska.rs
index 8d63d90..614073a 100644
--- a/matroska/src/matroska.rs
+++ b/matroska/src/matroska.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use ebml_derive::define_ebml;
define_ebml! {
diff --git a/matroska/src/read.rs b/matroska/src/read.rs
index 93a5074..1211351 100644
--- a/matroska/src/read.rs
+++ b/matroska/src/read.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{matroska::MatroskaTag, size::EbmlSize, Master};
use anyhow::{anyhow, bail, Result};
use log::{debug, warn};
diff --git a/matroska/src/size.rs b/matroska/src/size.rs
index a2ca61d..e1d6d08 100644
--- a/matroska/src/size.rs
+++ b/matroska/src/size.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EbmlSize {
Exact(usize),
diff --git a/matroska/src/unflatten.rs b/matroska/src/unflatten.rs
index 03ca0f5..5e0ba31 100644
--- a/matroska/src/unflatten.rs
+++ b/matroska/src/unflatten.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{matroska::MatroskaTag, Master};
use anyhow::Result;
diff --git a/matroska/src/write.rs b/matroska/src/write.rs
index fc12ffc..70ee06c 100644
--- a/matroska/src/write.rs
+++ b/matroska/src/write.rs
@@ -1,8 +1,12 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
+use crate::{matroska::MatroskaTag, size::EbmlSize, Master};
use anyhow::{bail, Result};
use std::io::Write;
-use crate::{matroska::MatroskaTag, size::EbmlSize, Master};
-
pub struct EbmlWriter {
inner: Box<dyn Write>,
position: usize,