Adds explicit call to flush_put_bits instead of assuming put_bits
caches 32bits
---
libavcodec/asvenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index ac7c317..9f85710 100644
--- a/libavcodec/asvenc.c
+++ b/libavcodec/asvenc.c
@@ -258,6 +258,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket
*pkt,
while (put_bits_count(&a->pb) & 31)
put_bits(&a->pb, 8, 0);
+ flush_put_bits(&a->pb);
size = put_bits_count(&a->pb) / 32;
if (avctx->codec_id == AV_CODEC_ID_ASV1) {
--
2.9.3
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel