1
1
mirror of https://github.com/wader/fq.git synced 2024-12-28 08:02:28 +03:00

Merge pull request #637 from wader/wav-clenaup-avi

wav: Cleanup avi leftovers
This commit is contained in:
Mattias Wadman 2023-04-11 20:16:56 +02:00 committed by GitHub
commit 089cf9bbae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ":
@ -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)