Commit c60d2be5 authored by Michael Niedermayer's avatar Michael Niedermayer

mp3enc:simplify

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e1e8a8de
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment