summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_av1.c
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:00:58 +0000
commit6bdb7712ae0267ba4f69c7434d2b3dee12762d1d (patch)
treed5f41f6a2f931c9cd096c0411be399a81bfad92f /libavcodec/cbs_av1.c
parenta587454fd07c831a6c315ae2daf1d8f66396d967 (diff)
downloadffmpeg-6bdb7712ae0267ba4f69c7434d2b3dee12762d1d.tar.gz
cbs_av1: Fix header writing when already aligned
Diffstat (limited to 'libavcodec/cbs_av1.c')
-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;