Blame SOURCES/0002-ALAC-set-chunk-frameCount-to-0-on-short-read.patch

852130
From 941774c8c0e79007196d7f1e7afdc97689f869b3 Mon Sep 17 00:00:00 2001
852130
From: Wim Taymans <wtaymans@redhat.com>
852130
Date: Thu, 27 Sep 2018 12:09:45 +0200
852130
Subject: [PATCH 2/3] ALAC: set chunk frameCount to 0 on short read
852130
852130
---
852130
 libaudiofile/modules/ALAC.cpp | 1 +
852130
 1 file changed, 1 insertion(+)
852130
852130
diff --git a/libaudiofile/modules/ALAC.cpp b/libaudiofile/modules/ALAC.cpp
852130
index 7593c11..478e2af 100644
852130
--- a/libaudiofile/modules/ALAC.cpp
852130
+++ b/libaudiofile/modules/ALAC.cpp
852130
@@ -240,6 +240,7 @@ void ALAC::runPull()
852130
 	if (read(m_inChunk->buffer, bytesPerPacket) < bytesPerPacket)
852130
 	{
852130
 		reportReadError(0, m_track->f.framesPerPacket);
852130
+		m_outChunk->frameCount = 0;
852130
 		return;
852130
 	}
852130
 
852130
-- 
852130
2.17.1
852130