Commit d58fa948 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mp3enc: use initial_padding

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 83f84e4c
...@@ -218,7 +218,7 @@ static int mp3_write_xing(AVFormatContext *s) ...@@ -218,7 +218,7 @@ static int mp3_write_xing(AVFormatContext *s)
avio_w8(s->pb, vendor[i]); avio_w8(s->pb, vendor[i]);
for (; i < 21; ++i) for (; i < 21; ++i)
avio_w8(s->pb, 0); 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); ffio_fill(s->pb, 0, mpah.frame_size - bytes_needed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment