From c60d2be5510044edf01d813363e39841db3d751a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Tue, 26 Apr 2011 03:50:56 +0200 Subject: [PATCH] mp3enc:simplify Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavformat/mp3enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 50efbb4c6f0..b13d0a961ca 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; -- GitLab