aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mediacodecdec_common.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-25 11:30:06 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-03-30 12:36:32 +0200
commitf9d1528fc900dac4975ce785dd95004daeacec39 (patch)
tree9544eec048c127fa6c1dc1efde3c2c2b4167b0c7 /libavcodec/mediacodecdec_common.c
parentdf1c30f139bd4c4d5426d4fc169a1a2c16f95163 (diff)
downloadffmpeg-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 'libavcodec/mediacodecdec_common.c')
0 files changed, 0 insertions, 0 deletions