File: fix-typos.diff

package info (click to toggle)
vbrfix 0.24%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 2,576 kB
  • ctags: 285
  • sloc: sh: 8,089; perl: 2,029; cpp: 834; makefile: 33
file content (35 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Fix some tipos in the output of the program.
Author: Rogério Theodoro de Brito <rbrito@ime.usp.br>
--- 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"<<endl;
     cout << "-ri2          removeId3v2 Tag"<<endl;
     cout << "-skiplame     if tag made by lame don't fix it"<<endl;
-    cout << "-allways      always write even if not vbr"<<endl;
-    cout << "-makevbr      make it vbr(you need -allways also)"<<endl;
+    cout << "-always       always write even if not vbr"<<endl;
+    cout << "-makevbr      make it vbr (you need -always also)"<<endl;
     cout << "-log          write a log file"<<endl;
     cout << "-lameinfo     keep the lame info"<<endl;
     return EXIT_SUCCESS;
--- a/vbrfixc/vbrfix.cpp
+++ b/vbrfixc/vbrfix.cpp
@@ -298,7 +298,7 @@
       bool e=false;unsigned char c;uint 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;}
+        if(c==255){logi("Error byte value of 255 in the lyrics3 tag!, assuming tag has ended");e=true;}
         if(c==ev1[correctv1])correctv1++;else {correctv1=0;if(c==ev1[correctv1])correctv1++;}
         if(c==ev2[correctv2])correctv2++;else {correctv2=0;if(c==ev2[correctv2])correctv2++;}
         if(correctv1==sizeof(ev1)-1 && p<5100){logf("version 1");e=true;}