1
1
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:
Mattias Wadman 2023-10-07 18:07:31 +02:00
parent 87ac051c3d
commit 9b10e59802

View File

@ -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
}