Browse Source

mp3enc:simplify

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
c60d2be551
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/mp3enc.c

+ 2
- 2
libavformat/mp3enc.c View 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;


Loading…
Cancel
Save