RiffTag return default on error

This commit is contained in:
Serial 2021-07-19 21:10:36 -04:00
parent 134bef896a
commit 1c1b7f5916

View file

@ -30,7 +30,7 @@ impl RiffTag {
{
Ok(Self {
inner: RiffInnerTag {
data: riff::read_from(reader)?,
data: riff::read_from(reader).unwrap_or_default(),
},
_format: TagType::RiffInfo,
})