Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-11-05 02:56:39 +0300
committerMark Thompson <sw@jkqxz.net>2018-11-06 02:10:57 +0300
commitaf3fccfeff74da54fc3e702fbb6757c2aad2814e (patch)
tree5917e6c8ff7e97cc33402642e45f4ebee0152854
parentec1b5216fc65602b97cf5dc97a9a9a266f38894f (diff)
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;