diff options
author | James Darnley <james.darnley@gmail.com> | 2013-12-30 18:13:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-24 22:50:06 +0100 |
commit | 0de03fd6a1f1eed8ca18908fc9529b36508ac144 (patch) | |
tree | 00eeaeefbf74e2bf8b43cb57219dc9608f29ee5e /libavformat/mp3enc.c | |
parent | c14b011a97f370c5cb0b8af123e916fa6932a72b (diff) | |
download | ffmpeg-0de03fd6a1f1eed8ca18908fc9529b36508ac144.tar.gz |
lavf/id3v2enc: use metadata_header_padding
As with the change to flacenc this allows the user to control the amount
of padding they want added to the file.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r-- | libavformat/mp3enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 9523cf9a9c..adf6a32572 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -304,7 +304,7 @@ static int mp3_queue_flush(AVFormatContext *s) AVPacketList *pktl; int ret = 0, write = 1; - ff_id3v2_finish(&mp3->id3, s->pb); + ff_id3v2_finish(&mp3->id3, s->pb, s->metadata_header_padding); mp3_write_xing(s); while ((pktl = mp3->queue)) { @@ -513,7 +513,7 @@ static int mp3_write_header(struct AVFormatContext *s) if (!mp3->pics_to_write) { if (mp3->id3v2_version) - ff_id3v2_finish(&mp3->id3, s->pb); + ff_id3v2_finish(&mp3->id3, s->pb, s->metadata_header_padding); mp3_write_xing(s); } |