debian/0000755000000000000000000000000011375413544007175 5ustar debian/source/0000755000000000000000000000000011375402307010470 5ustar debian/source/format0000644000000000000000000000001411375402307011676 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001411375402307010036 0ustar README TODO debian/control0000644000000000000000000000372711375402307010604 0ustar Source: vbrfix Section: sound Priority: optional Maintainer: Rogério Brito Build-Depends: debhelper (>= 7.0.50~), autotools-dev Standards-Version: 3.8.4 DM-Upload-Allowed: yes VCS-Browser: http://git.debian.org/?p=users/rbrito-guest/vbrfix.git VCS-Git: git://git.debian.org/users/rbrito-guest/vbrfix.git Package: vbrfix Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: corrects MP3 files that have incorrect VBR information In an average song there are points that require high quality and points that require low quality (i.e. silence). . Instead of having the whole file at, say, 160kbps CBR (Constant Bit Rate), we can use VBR (Variable Bit Rate). This allows us to have use low bitrates at points that does not require high quality (were a higher bitrate would not affect the sound heard) and high bitrates when needed. The result is usually a smaller MP3 file, with higher quality. . Unfortunately, the many MP3 decoders estimate the time of a MP3 file based on the first bitrate they find and the filesize. This means that the "prediction" used by such decoders is wildly wrong with VBR encoded files and, as a result, you can get fairly random times for such songs. . As most songs start with silence you usually get the song length being shown as much longer than it should be. Also when you jump through a file encoded in VBR, 50% through the file is usually not 50% through the song. . A VBR null frame is placed at the beginning of the file to tell the MP3 player information about the song length and indexing through the song. . The problem arises because some poor encoders don't produce this null frame or do so incorrectly and this is what vbrfix attempts to fix. . Vbrfix can also fix other problems with MP3s as it deletes all non-MP3 content (you can keep tags that you state, though). It can also help when merging two VBR MP3s together with a merging tool and then needing a newly calculated VBR null frame. debian/compat0000644000000000000000000000000211375402307010366 0ustar 7 debian/copyright0000644000000000000000000000241411375402307011124 0ustar This package was debianized by Rogério Brito on Mon, 23 Jul 2007 21:27:46 -0300. It was downloaded from Upstream Author: William Pye Copyright: Copyright © 2006,2007 William Pye License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is under the same license as the original software and is Copyright © 2007--2010 Rogério Theodoro de Brito debian/watch0000644000000000000000000000021211375402307010214 0ustar # The upstream author has moved the releases to a subversion tree # in one hosting system and seems to not be releasing tarballs anymore. debian/rules0000755000000000000000000000023511375403030010242 0ustar #!/usr/bin/make -f %: dh --with autotools_dev $@ override_dh_auto_install: dh_auto_install mv debian/vbrfix/usr/bin/vbrfixc debian/vbrfix/usr/bin/vbrfix debian/patches/0000755000000000000000000000000011375402307010617 5ustar debian/patches/fix-endianness.diff0000644000000000000000000000173211375402307014367 0ustar Description: Fix errors due to different endianness writing output files. Author: Rogério Theodoro de Brito --- a/vbrfixc/vbrfix.cpp +++ b/vbrfixc/vbrfix.cpp @@ -15,6 +15,7 @@ * * ***************************************************************************/ #include "vbrfix.h" +#include "arpa/inet.h" //#include "stdafx.h"//include in mfc version int getXHpos(int ver,int chan); VbrFix::VbrFix(){ @@ -345,11 +346,12 @@ return false; } void VbrFix::revWrite(long n){ - unsigned char *fred; - fred=(unsigned char*)&n; - unsigned char t[4]; - t[0]=fred[3];t[1]=fred[2];t[2]=fred[1];t[3]=fred[0]; - outmp3.fWrite(t,4); + unsigned long t = htonl(n); +// unsigned char *fred; +// fred=(unsigned char*)&n; +// unsigned char t[4]; +// t[0]=fred[3];t[1]=fred[2];t[2]=fred[1];t[3]=fred[0]; + outmp3.fWrite(&t,4); //fwrite(t,4,1,outmp3); } void VbrFix::writeVbrHeader(){ debian/patches/series0000644000000000000000000000010511375402307012030 0ustar fix-typos.diff fix-endianness.diff gcc-4.3.diff exit-error-code.diff debian/patches/exit-error-code.diff0000644000000000000000000000104311375402307014457 0ustar Description: Return error conditions including in the case of not changing a file. Author: Rogério Theodoro de Brito --- a/vbrfixc/vbrfix.cpp +++ b/vbrfixc/vbrfix.cpp @@ -73,6 +73,9 @@ endFix(); return false; } + catch (...) { + return false; + } return true; } void VbrFix::endFix(){ @@ -113,7 +116,10 @@ catch(const char* err){ if(err!=NULL)loge(err); endFix(); - return false; + exit(-1);//return false; + } + catch (...) { + exit(-1);//return false; } return false; } debian/patches/gcc-4.3.diff0000644000000000000000000000060611375402307012511 0ustar Description: Include header files to avoid problems with newer versions of gcc --- a/vbrfixc/vbrfix.cpp +++ b/vbrfixc/vbrfix.cpp @@ -16,6 +16,7 @@ ***************************************************************************/ #include "vbrfix.h" #include "arpa/inet.h" +#include //#include "stdafx.h"//include in mfc version int getXHpos(int ver,int chan); VbrFix::VbrFix(){ debian/patches/fix-typos.diff0000644000000000000000000000352011375402307013413 0ustar Description: Fix some tipos in the output of the program. Author: Rogério Theodoro de Brito --- a/vbrfixc/main.cpp +++ b/vbrfixc/main.cpp @@ -44,7 +44,7 @@ if(f=="-ri1")return VBR_RemoveId3v1; if(f=="-ri2")return VBR_RemoveId3v2; if(f=="-skiplame")return VBR_SkipLAME; - if(f=="-allways")return VBR_AlwaysWrite; + if(f=="-allways"||f=="-always")return VBR_AlwaysWrite; if(f=="-makevbr")return VBR_AlwaysWriteVBR; if(f=="-log")return VBR_WriteLogFile; if(f=="-lameinfo")return VBR_ReplaceLAMEkeepinfo; @@ -64,8 +64,8 @@ cout << "-ri1 removeId3v1 Tag"< Fri, 21 May 2010 01:09:32 -0300 vbrfix (0.24-6) unstable; urgency=low * Transition to source format "3.0 (quilt)" * Add descriptions to the patches being applied * Update the copyright years * Transition to dh(7)-based rules file * Update standards-version to 3.8.4 * Add references to the new git repository -- Rogério Brito Wed, 19 May 2010 10:15:13 -0300 vbrfix (0.24-5) unstable; urgency=low * debian/rules: + try to fix the avr32 FTBFS once again. -- Rogério Brito Sat, 01 Aug 2009 13:51:22 -0300 vbrfix (0.24-4) unstable; urgency=low * debian/rules: + separate the cross-compilation flags. + remove obsolete comments. + organize the file with a view towards minimization. + let's see if this helps with the avr32 port. * debian/control: + update standards to 3.8.2; no changes required. * debian/patches: + fix-typos.diff: include one other typo found by lintian. + include comments for each patch. + refresh the patches. * debian/copyright: + include versioned reference to the GPL. -- Rogério Brito Wed, 29 Jul 2009 10:40:29 -0300 vbrfix (0.24-3) unstable; urgency=low * debian/copyright: update. * debian/rules: adapted to use quilt.make. * debian/patches/exit-error-code.diff: exit with error code in proper cases. Closes: #455212 * debian/patches/*: refreshed. -- Rogério Brito Tue, 30 Sep 2008 15:14:35 -0300 vbrfix (0.24-2) unstable; urgency=low * Acknowledge NMUs * debian/patches/fix-typos.diff: remove from .diff.gz and make it a proper patch. Also Closes: #486672 * debian/control: use Standards-Version 3.8.0. No changes needed. * debian/control: cleaned up the long description. * debian/control: avoided repetition of a word. (Tks lintian). * debian/control: included the header to allow Debian Maintainer uploads. * debian/rules: added "-Wextra" CFLAG. It is saner this way. * debian/rules: added a commented inclusion of quilt.make for the future. -- Rogério Brito Fri, 26 Sep 2008 08:08:08 -0300 vbrfix (0.24-1.2) unstable; urgency=medium * Non-maintainer upload. * Add gcc-4.3.diff patch to really fix GCC 4.3-related FTBFS (Closes: #474833) * Correct typo in -help invokation and allow '-always' as well as '-allways' (Closes: #463140) * Bump Standards-Version to 3.7.3. -- Chris Lamb Fri, 11 Apr 2008 23:44:54 +0100 vbrfix (0.24-1.1) unstable; urgency=low * Non-maintainer upload. * Fix gcc-4.3 FTBFS, patch by KiBi (Closes: #461665) -- Marc 'HE' Brockschmidt Sun, 16 Mar 2008 21:51:35 +0100 vbrfix (0.24-1) unstable; urgency=low * Initial release (Closes: #434465) * debian/vbrfix.1 + created manpage with the help of help2man + reworked the manpage *a lot* * debian/manpages: list the manpage so that it gets installed. * debian/patches: patch vbrfix to work on little and big endian machines * don't modify *.in files because they cause the package to FTBFS -- Rogério Brito Mon, 23 Jul 2007 21:27:46 -0300 debian/dirs0000644000000000000000000000001011375402307010043 0ustar usr/bin debian/manpages0000644000000000000000000000002011375402307010676 0ustar debian/vbrfix.1