mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-19 22:10:18 +00:00
cbs_av1: Fix header writing when already aligned
(cherry picked from commit 6bdb7712ae)
This commit is contained in:
parent
ec1b5216fc
commit
af3fccfeff
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue