From: Kostya Shishkov Date: Tue, 1 Sep 2020 08:45:03 +0000 (+0200) Subject: core/codecs: introduce a special error for failed checksum X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=3983a2bb88a405cd581a0456a6f49471cb52f78f;p=nihav.git core/codecs: introduce a special error for failed checksum --- 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.