diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-05 23:02:18 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-05 23:03:45 +0100 |
commit | 14c9b7b194221dbf358d4a44fb4db049fc95afa9 (patch) | |
tree | 71ddd18367714760b2b0ce5ee1b7166032a7d1a0 | |
parent | fb5e871937348c6bf59cc6c640cfb3305a092f4f (diff) | |
download | ffmpeg-14c9b7b194221dbf358d4a44fb4db049fc95afa9.tar.gz |
avcodec/dnxhdenc: fill unused bytes from put bits buffer with zeros
-rw-r--r-- | libavcodec/dnxhdenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 9bdecec284..9928ba0525 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -909,6 +909,7 @@ static int dnxhd_encode_thread(AVCodecContext *avctx, void *arg, if (put_bits_count(&ctx->m.pb) & 31) put_bits(&ctx->m.pb, 32 - (put_bits_count(&ctx->m.pb) & 31), 0); flush_put_bits(&ctx->m.pb); + memset(put_bits_ptr(&ctx->m.pb), 0, put_bytes_left(&ctx->m.pb, 0)); return 0; } |