diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-09-01 10:45:03 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-09-05 14:09:56 +0200 |
commit | 3983a2bb88a405cd581a0456a6f49471cb52f78f (patch) | |
tree | 2ea6675ab22c5035a8ec390de0388561ee72443d | |
parent | 002d2a48c6a60e47519259b0d0f79d3133c93986 (diff) | |
download | nihav-3983a2bb88a405cd581a0456a6f49471cb52f78f.tar.gz |
core/codecs: introduce a special error for failed checksum
-rw-r--r-- | nihav-core/src/codecs/mod.rs | 2 |
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. |