Commit 6bdb7712 authored by Mark Thompson's avatar Mark Thompson

cbs_av1: Fix header writing when already aligned

parent a587454f
...@@ -1179,7 +1179,7 @@ static int cbs_av1_write_obu(CodedBitstreamContext *ctx, ...@@ -1179,7 +1179,7 @@ static int cbs_av1_write_obu(CodedBitstreamContext *ctx,
if (err < 0) if (err < 0)
return err; return err;
end_pos = put_bits_count(pbc); 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 { } else {
// Empty OBU. // Empty OBU.
obu->obu_size = 0; obu->obu_size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment