core: implement defaults for some objects
[nihav.git] / nihav-core / src / frame.rs
index 9756dfbaded9a3f3402cd3b029f46af926d11600..cd25ca2b4857bea23bb94fa807d55a0b293a2397 100644 (file)
@@ -430,6 +430,10 @@ impl NACodecInfo {
     }
 }
 
+impl Default for NACodecInfo {
+    fn default() -> Self { DUMMY_CODEC_INFO }
+}
+
 impl fmt::Display for NACodecInfo {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         let edata = match self.extradata.clone() {