core/codecs: introduce a special error for failed checksum
[nihav.git] / nihav-core / src / codecs / mod.rs
index 8594b40905e0cd90189ffeba8574ccb97cf98009..2ae0c334766a0806bf281eb607fe50560b63d1cd 100644 (file)
@@ -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.