From c8c9d94f9a5804e9442afdbeead59b6478d83fe7 Mon Sep 17 00:00:00 2001 From: casey langen Date: Tue, 28 Nov 2017 22:05:46 -0800 Subject: [PATCH] Fixed fopen() mode in LameEncoder to ensure the gapless header is properly written. --- src/plugins/stockencoders/LameEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/stockencoders/LameEncoder.cpp b/src/plugins/stockencoders/LameEncoder.cpp index efb9d3877..248d16726 100644 --- a/src/plugins/stockencoders/LameEncoder.cpp +++ b/src/plugins/stockencoders/LameEncoder.cpp @@ -155,7 +155,7 @@ void LameEncoder::Finalize(const char* uri) { #ifdef WIN32 FILE* fp = _wfopen(utf8to16(uri).c_str(), L"r+b"); #else - FILE* fp = fopen(uri, "a+b"); + FILE* fp = fopen(uri, "r+b"); #endif if (fp) { if (!fseek(fp, 0, SEEK_SET)) {