avformat/mp3enc: use initial_padding

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-14 03:53:17 +02:00
parent 83f84e4c53
commit d58fa9482e

View File

@ -218,7 +218,7 @@ static int mp3_write_xing(AVFormatContext *s)
avio_w8(s->pb, vendor[i]);
for (; i < 21; ++i)
avio_w8(s->pb, 0);
avio_wb24(s->pb, FFMAX(codec->delay - 528 - 1, 0)<<12);
avio_wb24(s->pb, FFMAX(codec->initial_padding - 528 - 1, 0)<<12);
ffio_fill(s->pb, 0, mpah.frame_size - bytes_needed);