From 3983a2bb88a405cd581a0456a6f49471cb52f78f Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 1 Sep 2020 10:45:03 +0200 Subject: [PATCH] core/codecs: introduce a special error for failed checksum --- nihav-core/src/codecs/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.39.5