summaryrefslogtreecommitdiff
path: root/libavcodec/mqcenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-06 13:08:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-08 22:59:14 +0200
commitfc9cb7d51aa40bdbc0680278c4228701be445656 (patch)
tree2a23d3741c1d36ab426af36425b3734d43ca0992 /libavcodec/mqcenc.c
parent25394eb72ee0f0735ea06b439a8dde428def8dc3 (diff)
avcodec/mqcenc: Make ff_mqc_flush() static
Only used as an auxiliary function for ff_mqc_flush_to() since 4624656797b667eb6405186682eb04e74dfd90fd. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mqcenc.c')
-rw-r--r--libavcodec/mqcenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mqcenc.c b/libavcodec/mqcenc.c
index c941f849d9..6d0368f827 100644
--- a/libavcodec/mqcenc.c
+++ b/libavcodec/mqcenc.c
@@ -102,7 +102,7 @@ void ff_mqc_encode(MqcState *mqc, uint8_t *cxstate, int d)
}
}
-int ff_mqc_flush(MqcState *mqc)
+static int mqc_flush(MqcState *mqc)
{
setbits(mqc);
mqc->c = mqc->c << mqc->ct;
@@ -120,7 +120,7 @@ int ff_mqc_flush_to(MqcState *mqc, uint8_t *dst, int *dst_len)
mqc2.bpstart=
mqc2.bp = dst;
*mqc2.bp = *mqc->bp;
- ff_mqc_flush(&mqc2);
+ mqc_flush(&mqc2);
*dst_len = mqc2.bp - dst;
if (mqc->bp < mqc->bpstart) {
av_assert1(mqc->bpstart - mqc->bp == 1);