mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 12:27:18 +00:00
mp3enc:simplify
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e1e8a8ded4
commit
c60d2be551
@ -420,7 +420,7 @@ static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (0 < mp3->frames_offset)
|
if (mp3->frames_offset)
|
||||||
mp3_xing_add_frame(s, pkt);
|
mp3_xing_add_frame(s, pkt);
|
||||||
|
|
||||||
return ff_raw_write_packet(s, pkt);
|
return ff_raw_write_packet(s, pkt);
|
||||||
@ -435,7 +435,7 @@ static int mp3_write_trailer(AVFormatContext *s)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (0 < mp3->frames_offset)
|
if (mp3->frames_offset)
|
||||||
mp3_fix_xing(s);
|
mp3_fix_xing(s);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user