--- libavcodec/aacenc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index b4045ab..58714e1 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 = (8 - (put_bits_count(&s->pb) & 7)) & 7; avpriv_align_put_bits(&s->pb); for (i = 0; i < namelen - 2; i++) put_bits(&s->pb, 8, name[i]); -- 1.7.7.3 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel