aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-11-04 23:56:39 +0000
committerMark Thompson <sw@jkqxz.net>2018-11-05 23:10:57 +0000
commitaf3fccfeff74da54fc3e702fbb6757c2aad2814e (patch)
tree5917e6c8ff7e97cc33402642e45f4ebee0152854
parentec1b5216fc65602b97cf5dc97a9a9a266f38894f (diff)
downloadffmpeg-af3fccfeff74da54fc3e702fbb6757c2aad2814e.tar.gz
cbs_av1: Fix header writing when already aligned
(cherry picked from commit 6bdb7712ae0267ba4f69c7434d2b3dee12762d1d)
-rw-r--r--libavcodec/cbs_av1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 9bac9dde09..1c49d90f51 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -1179,7 +1179,7 @@ static int cbs_av1_write_obu(CodedBitstreamContext *ctx,
if (err < 0)
return err;
end_pos = put_bits_count(pbc);
- obu->obu_size = (end_pos - start_pos + 7) / 8;
+ obu->obu_size = header_size = (end_pos - start_pos + 7) / 8;
} else {
// Empty OBU.
obu->obu_size = 0;