diff src/filewriter/vorbis.c @ 2950:dcd8d93ba781

- mp3: adapted to lame-3.98. now filewriter writes valid TLEN. - deleted unnecessary variable "written".
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 11 Oct 2008 02:02:41 +0900
parents 31d6c44ffef2
children
line wrap: on
line diff
--- a/src/filewriter/vorbis.c	Sat Oct 04 19:54:04 2008 +0200
+++ b/src/filewriter/vorbis.c	Sat Oct 11 02:02:41 2008 +0900
@@ -86,7 +86,6 @@
 
     vorbis_init(NULL);
 
-    written = 0;
     olen = 0;
 
     vorbis_info_init(&vi);
@@ -147,8 +146,8 @@
         if (result == 0)
             break;
 
-        written += write_output(og.header, og.header_len);
-        written += write_output(og.body, og.body_len);
+        write_output(og.header, og.header_len);
+        write_output(og.body, og.body_len);
     }
 
     return 1;
@@ -201,8 +200,8 @@
                 if (result == 0)
                     break;
 
-                written += write_output(og.header, og.header_len);
-                written += write_output(og.body, og.body_len);
+                write_output(og.header, og.header_len);
+                write_output(og.body, og.body_len);
             }
         }
     }