diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-25 12:52:56 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-03-30 12:36:32 +0200 |
commit | c81b8e04aa0952a7aec1e08940f29ae501fb6bfd (patch) | |
tree | 34c1d0dd6c2262ef83efa3ae77ea704580144050 /libavformat/latmenc.c | |
parent | 73fb1b8a9bd6a563a6b58ce8aa215f2f07e91f57 (diff) |
Avoid intermediate bitcount for number of bytes in PutBitContext
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/latmenc.c')
-rw-r--r-- | libavformat/latmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 91e96e90b0..5488361bde 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -225,7 +225,7 @@ static int latm_write_packet(AVFormatContext *s, AVPacket *pkt) flush_put_bits(&bs); - len = put_bits_count(&bs) >> 3; + len = put_bytes_output(&bs); if (len > 0x1fff) goto too_large; |