From 0de03fd6a1f1eed8ca18908fc9529b36508ac144 Mon Sep 17 00:00:00 2001 From: James Darnley Date: Mon, 30 Dec 2013 18:13:08 +0100 Subject: 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 --- libavformat/mp3enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/mp3enc.c') 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); } -- cgit v1.2.3