aboutsummaryrefslogtreecommitdiffstats
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
parent83f84e4c53e4a0542586aa7c3e9d3048dc4d2277 (diff)
downloadffmpeg-d58fa9482e9da53e761497760f68f491999dc028.tar.gz
avformat/mp3enc: use initial_padding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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);