Skip to content

Commit

Permalink
wav: Cleanup avi leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Apr 11, 2023
1 parent 22ab561 commit e1b0231
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions format/riff/wav.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@ func wavDecode(d *decode.D) any {
return true, nil

case "LIST":
typ := d.FieldUTF8("type", 4)
switch typ {
case "strl":
return true, &aviStrl{}
}

d.FieldUTF8("type", 4)
return true, nil

case "fmt ":
Expand Down Expand Up @@ -156,7 +151,7 @@ func wavDecode(d *decode.D) any {
)

if riffType != wavRiffType {
d.Errorf("wrong or no AVI riff type found (%s)", riffType)
d.Errorf("wrong or no WAV riff type found (%s)", riffType)
}
_, _, _ = d.TryFieldFormat("footer", wavFooterFormat, nil)

Expand Down

0 comments on commit e1b0231

Please sign in to comment.