diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-25 11:30:06 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-03-30 12:36:32 +0200 |
commit | f9d1528fc900dac4975ce785dd95004daeacec39 (patch) | |
tree | 9544eec048c127fa6c1dc1efde3c2c2b4167b0c7 /libavformat/bintext.c | |
parent | df1c30f139bd4c4d5426d4fc169a1a2c16f95163 (diff) | |
download | ffmpeg-f9d1528fc900dac4975ce785dd95004daeacec39.tar.gz |
avcodec/proresenc_kostya: Factor flushing PutBitContext out
The function to write an ordinary (luma or chroma) plane as well as
the function for writing an alpha plane have some similarities:
They record the initial bitposition (despite said position always being
byte-aligned), flush the PutBitContext themselves and return the amount
of bytes they wrote.
This commit factors this out; it also replaces bitpositions by
bytepositions and it avoids recording the initial byteposition because
said information is already available from the position at the end of
the last plane.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/bintext.c')
0 files changed, 0 insertions, 0 deletions