Skip to content

Commit

Permalink
Merge pull request #780 from wader/avi-even-better-sample-size-heuris…
Browse files Browse the repository at this point in the history
…tics

avi: Increase sample size heuristics to 32bit stereo
  • Loading branch information
wader authored Oct 8, 2023
2 parents b921a5f + c7ec18d commit a9051e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions format/riff/avi.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ func aviDecode(d *decode.D) any {
}

subSampleSize := int64(stream.sampleSize) * 8
// TODO: <= no format and <= 4*8 heuristics to not create separate pcm samples
if subSampleSize == 0 || (!stream.hasFormat && subSampleSize <= 4*8) {
// TODO: <= no format and <= 8*8 heuristics to not create separate pcm samples
if subSampleSize == 0 || (!stream.hasFormat && subSampleSize <= 8*8) {
subSampleSize = sr.Len
}

Expand Down

0 comments on commit a9051e8

Please sign in to comment.