diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-10-26 13:36:06 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-10-28 13:53:23 +0100 |
commit | 717503f7166d7032e32b935f2819d450524125d1 (patch) | |
tree | f18317021078c2ebec76216af00023c836c49d2e /libavcodec/aacenc.c | |
parent | 886c601a7064333708f2fdbaf970eb783b5a2008 (diff) |
put_bits: make avpriv_align_put_bits() inline
This function is so extremely simple that it is preferable to make it
inline rather than deal with all the complications arising from it being
an exported symbol.
Keep avpriv_align_put_bits() around until the next major bump to
preserve ABI compatibility.
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r-- | libavcodec/aacenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index e65b76cd74..e477089f5c 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -83,7 +83,7 @@ static void put_pce(PutBitContext *pb, AVCodecContext *avctx) } } - avpriv_align_put_bits(pb); + align_put_bits(pb); put_bits(pb, 8, strlen(aux_data)); avpriv_put_string(pb, aux_data, 0); } @@ -522,7 +522,7 @@ static void put_bitstream_info(AACEncContext *s, const char *name) put_bits(&s->pb, 8, namelen - 14); put_bits(&s->pb, 4, 0); //extension type - filler padbits = -put_bits_count(&s->pb) & 7; - avpriv_align_put_bits(&s->pb); + align_put_bits(&s->pb); for (i = 0; i < namelen - 2; i++) put_bits(&s->pb, 8, name[i]); put_bits(&s->pb, 12 - padbits, 0); |