diff options
Diffstat (limited to 'media-sound/vbrfixc/files/vbrfixc-0.24-gcc43.patch')
-rw-r--r-- | media-sound/vbrfixc/files/vbrfixc-0.24-gcc43.patch | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/media-sound/vbrfixc/files/vbrfixc-0.24-gcc43.patch b/media-sound/vbrfixc/files/vbrfixc-0.24-gcc43.patch index 89e20e3aade0..d2473e81d8f5 100644 --- a/media-sound/vbrfixc/files/vbrfixc-0.24-gcc43.patch +++ b/media-sound/vbrfixc/files/vbrfixc-0.24-gcc43.patch @@ -1,11 +1,31 @@ -diff -ur vbrfixc-0.24/vbrfixc/vbrfix.cpp vbrfixc-0.24.dmd/vbrfixc/vbrfix.cpp ---- vbrfixc-0.24/vbrfixc/vbrfix.cpp 2003-07-17 13:58:21.000000000 -0400 -+++ vbrfixc-0.24.dmd/vbrfixc/vbrfix.cpp 2008-06-11 11:26:42.000000000 -0400 -@@ -16,6 +16,7 @@ +--- a/vbrfixc/vbrfix.cpp ++++ b/vbrfixc/vbrfix.cpp +@@ -16,6 +16,8 @@ ***************************************************************************/ #include "vbrfix.h" //#include "stdafx.h"//include in mfc version +#include <cstring> ++#include <stdint.h> int getXHpos(int ver,int chan); VbrFix::VbrFix(){ frameptrs=NULL;flags=0; +@@ -295,7 +297,7 @@ + } + lyrics3Pos=mp3.getpos()-8-4; + //find its length +- bool e=false;unsigned char c;uint correctv1=0,correctv2=0,p=0;char ev1[]="LYRICSEND";char ev2[]="LYRICS200"; ++ bool e=false;unsigned char c;uint32_t correctv1=0,correctv2=0,p=0;char ev1[]="LYRICSEND";char ev2[]="LYRICS200"; + while(!e && mp3.getpos()< mp3length){ + mp3.fRead(&c,1); + if(c==255){logi("Error byte value of 255 in the lyrics3 tag!, asuming tag has ended");e=true;} +--- a/vbrfixc/wputil.h ++++ b/vbrfixc/wputil.h +@@ -199,7 +199,7 @@ + ofstream out(output, ios::out|ios::binary|ios::trunc); + if(out.fail())return false; + // fast portable file copy +- return out << in.rdbuf(); ++ return bool(out << in.rdbuf()); + } + static wps loadSetting(const char *file,wps setting,wps defaultValue){ + ifstream in(file, ios::in); |