summaryrefslogtreecommitdiff
path: root/libavformat/mp3enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-14 03:53:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-14 03:53:17 +0200
commitd58fa9482e9da53e761497760f68f491999dc028 (patch)
tree0cb3c61356ac002cf1c17a0a1d900d43ecb20ffa /libavformat/mp3enc.c
parent83f84e4c53e4a0542586aa7c3e9d3048dc4d2277 (diff)
avformat/mp3enc: use initial_padding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r--libavformat/mp3enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 7e6b2e1795..a0ba596243 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -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);