aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/codecs/mod.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-09-01 10:45:03 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-09-05 14:09:56 +0200
commit3983a2bb88a405cd581a0456a6f49471cb52f78f (patch)
tree2ea6675ab22c5035a8ec390de0388561ee72443d /nihav-core/src/codecs/mod.rs
parent002d2a48c6a60e47519259b0d0f79d3133c93986 (diff)
downloadnihav-3983a2bb88a405cd581a0456a6f49471cb52f78f.tar.gz
core/codecs: introduce a special error for failed checksum
Diffstat (limited to 'nihav-core/src/codecs/mod.rs')
-rw-r--r--nihav-core/src/codecs/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs
index 8594b40..2ae0c33 100644
--- a/nihav-core/src/codecs/mod.rs
+++ b/nihav-core/src/codecs/mod.rs
@@ -18,6 +18,8 @@ pub enum DecoderError {
TryAgain,
/// Invalid input data was provided.
InvalidData,
+ /// Checksum verification failed.
+ ChecksumError,
/// Provided input turned out to be incomplete.
ShortData,
/// Decoder could not decode provided frame because it references some missing previous frame.