summaryrefslogtreecommitdiff
path: root/libavcodec/wmaenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-26 13:36:06 +0100
committerAnton Khirnov <anton@khirnov.net>2020-10-28 13:53:23 +0100
commit717503f7166d7032e32b935f2819d450524125d1 (patch)
treef18317021078c2ebec76216af00023c836c49d2e /libavcodec/wmaenc.c
parent886c601a7064333708f2fdbaf970eb783b5a2008 (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/wmaenc.c')
-rw-r--r--libavcodec/wmaenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index 091bc2ac3b..6a7e23d016 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -343,7 +343,7 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
s->coef_vlcs[tindex]->huffcodes[1]);
}
if (s->version == 1 && s->avctx->channels >= 2)
- avpriv_align_put_bits(&s->pb);
+ align_put_bits(&s->pb);
}
return 0;
}
@@ -358,7 +358,7 @@ static int encode_frame(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
else if (encode_block(s, src_coefs, total_gain) < 0)
return INT_MAX;
- avpriv_align_put_bits(&s->pb);
+ align_put_bits(&s->pb);
return put_bits_count(&s->pb) / 8 - s->avctx->block_align;
}