diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/latmenc.c | 2 | ||||
-rw-r--r-- | libavformat/movenc.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/libavformat/movenc.c b/libavformat/movenc.c index bade57dcea..c00e38e72f 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -579,7 +579,7 @@ static int mov_write_eac3_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra } } flush_put_bits(&pbc); - size = put_bits_count(&pbc) >> 3; + size = put_bytes_output(&pbc); avio_wb32(pb, size + 8); ffio_wfourcc(pb, "dec3"); |