[FFmpeg-cvslog] mp3enc:simplify

Michael Niedermayer git at videolan.org
Sat May 7 04:07:35 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 26 03:50:56 2011 +0200| [c60d2be5510044edf01d813363e39841db3d751a] | committer: Michael Niedermayer

mp3enc:simplify
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c60d2be5510044edf01d813363e39841db3d751a
---

 libavformat/mp3enc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 50efbb4..b13d0a9 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list