mirror of
https://github.com/wader/fq.git
synced 2024-10-26 20:06:29 +03:00
avi: Only use sample size heuristics if there is no format
This commit is contained in:
parent
87ac051c3d
commit
9b10e59802
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user