diff options
author | Alex Converse <alex.converse@gmail.com> | 2012-01-23 13:08:32 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2012-01-24 12:55:21 -0800 |
commit | efe68076dab56293168ffb66d7b6c1977b740098 (patch) | |
tree | c58a0dc65d3dd08dbd1527ef4b4ddd27e8762aa9 /libavcodec | |
parent | cdfe94c5ab1df40c6c724df5d4cafe2539c5571a (diff) | |
download | ffmpeg-efe68076dab56293168ffb66d7b6c1977b740098.tar.gz |
aacenc: Fix identification padding when the bitstream is already aligned.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index b4045ab6eb..d7a6d5a63c 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -464,7 +464,7 @@ static void put_bitstream_info(AVCodecContext *avctx, AACEncContext *s, if (namelen >= 15) put_bits(&s->pb, 8, namelen - 14); put_bits(&s->pb, 4, 0); //extension type - filler - padbits = 8 - (put_bits_count(&s->pb) & 7); + padbits = -put_bits_count(&s->pb) & 7; avpriv_align_put_bits(&s->pb); for (i = 0; i < namelen - 2; i++) put_bits(&s->pb, 8, name[i]); |