Skip to content

Commit

Permalink
avi: Only use sample size heuristics if there is no format
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Oct 7, 2023
1 parent 87ac051 commit 9b10e59
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 @@ -568,8 +568,8 @@ func aviDecode(d *decode.D) any {
}

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

Expand Down

0 comments on commit 9b10e59

Please sign in to comment.