ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Wed Jun  5 14:14:36 2024 +0200| [3af6136669034fa504ee25e76e84addc4529181b] | 
committer: Andreas Rheinhardt

avcodec/dnxhdenc: Simplify padding

It is unnecessary to first pad to 32bits; the memset later
will pad everything will with zeroes anyway.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3af6136669034fa504ee25e76e84addc4529181b
---

 libavcodec/dnxhdenc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 4760a2932c..028604a6e5 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -908,8 +908,6 @@ static int dnxhd_encode_thread(AVCodecContext *avctx, void 
*arg,
             dnxhd_encode_block(pb, ctx, block, last_index, n);
         }
     }
-    if (put_bits_count(pb) & 31)
-        put_bits(pb, 32 - (put_bits_count(pb) & 31), 0);
     flush_put_bits(pb);
     memset(put_bits_ptr(pb), 0, put_bytes_left(pb, 0));
     return 0;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to