]> git.sesse.net Git - ffmpeg/commitdiff
mp3enc:simplify
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Apr 2011 01:50:56 +0000 (03:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 May 2011 02:01:28 +0000 (04:01 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mp3enc.c

index 50efbb4c6f04139eb30fb69a27dadc571ec3c431..b13d0a961cab99ee15a86d08f38691d9dbd41974 100644 (file)
@@ -420,7 +420,7 @@ static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
             return 0;
 #endif
 
-        if (0 < mp3->frames_offset)
+        if (mp3->frames_offset)
             mp3_xing_add_frame(s, pkt);
 
         return ff_raw_write_packet(s, pkt);
@@ -435,7 +435,7 @@ static int mp3_write_trailer(AVFormatContext *s)
     if (ret < 0)
         return ret;
 
-    if (0 < mp3->frames_offset)
+    if (mp3->frames_offset)
         mp3_fix_xing(s);
 
     return 0;