mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-06 15:53:39 +00:00
Fixed fopen() mode in LameEncoder to ensure the gapless header is properly written.
This commit is contained in:
parent
2942b81a2c
commit
c8c9d94f9a
@ -155,7 +155,7 @@ void LameEncoder::Finalize(const char* uri) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
FILE* fp = _wfopen(utf8to16(uri).c_str(), L"r+b");
|
FILE* fp = _wfopen(utf8to16(uri).c_str(), L"r+b");
|
||||||
#else
|
#else
|
||||||
FILE* fp = fopen(uri, "a+b");
|
FILE* fp = fopen(uri, "r+b");
|
||||||
#endif
|
#endif
|
||||||
if (fp) {
|
if (fp) {
|
||||||
if (!fseek(fp, 0, SEEK_SET)) {
|
if (!fseek(fp, 0, SEEK_SET)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user