diff mbox series

[FFmpeg-devel,05/11] avcodec/mqcenc: Make ff_mqc_flush() static

Message ID AM7PR03MB66606F885A6BAC96ABF22F878FD29@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit fc9cb7d51aa40bdbc0680278c4228701be445656
Headers show
Series [FFmpeg-devel,01/11] avcodec/bsf: ff_list_bsf static | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 6, 2021, 12:42 p.m. UTC
Only used as an auxiliary function for ff_mqc_flush_to() since
4624656797b667eb6405186682eb04e74dfd90fd.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mqc.h    | 1 -
 libavcodec/mqcenc.c | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mqc.h b/libavcodec/mqc.h
index ad80fe9228..5e782b05f9 100644
--- a/libavcodec/mqc.h
+++ b/libavcodec/mqc.h
@@ -55,7 +55,6 @@  void ff_mqc_initenc(MqcState *mqc, uint8_t *bp);
 void ff_mqc_encode(MqcState *mqc, uint8_t *cxstate, int d);
 
 /** flush the encoder [returns number of bytes encoded] */
-int ff_mqc_flush(MqcState *mqc);
 int ff_mqc_flush_to(MqcState *mqc, uint8_t *dst, int *dst_len);
 
 /* decoder */
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);