From 294c0b700326ab24d1a793e81338a93aebb2e69e Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 13 Sep 2014 18:02:16 +0200
Subject: gcc2 fix.


diff --git a/frontend/frontend.c b/frontend/frontend.c
index f722955..3cdbf6c 100644
--- a/frontend/frontend.c
+++ b/frontend/frontend.c
@@ -736,8 +736,8 @@ int main(int argc, char **argv)
     // 
     mp2fill_size = twolame_encode_flush(encopts, mp2buffer, MP2_BUF_SIZE);
     if (mp2fill_size > 0) {
-        frame_count++;
         int bytes_out = fwrite(mp2buffer, sizeof(unsigned char), mp2fill_size, outputfile);
+        frame_count++;
         if (bytes_out <= 0) {
             perror("error while writing to output file");
             exit(ERR_WRITING_OUTPUT);
-- 
1.8.3.4

