summaryrefslogtreecommitdiff
path: root/libavcodec/xsubenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-30 21:44:51 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-01 18:56:32 +0200
commit8129c32e488645db325263a6bee01311b83e7ed9 (patch)
tree2659708f5aca2bafe0cd8405550f9d28122c8fc0 /libavcodec/xsubenc.c
parentc67bdd6534a0ee67c0d18aed0e3345e59464254f (diff)
avcodec, avfilter, avformat: Remove redundant avpriv_align_put_bits
flush_put_bits() already fills the bitstream with zeroes, so it is unnecessary to align the bitstream before. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/xsubenc.c')
-rw-r--r--libavcodec/xsubenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c
index 4d58e0f3b5..349c1bca3c 100644
--- a/libavcodec/xsubenc.c
+++ b/libavcodec/xsubenc.c
@@ -206,7 +206,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
// Enforce total height to be a multiple of 2
if (h->rects[0]->h & 1) {
put_xsub_rle(&pb, h->rects[0]->w, PADDING_COLOR);
- avpriv_align_put_bits(&pb);
}
flush_put_bits(&pb);