avcodec/mqcenc: Make ff_mqc_flush() static

Only used as an auxiliary function for ff_mqc_flush_to() since
4624656797.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/366/head
Andreas Rheinhardt 3 years ago
parent 25394eb72e
commit fc9cb7d51a
  1. 1
      libavcodec/mqc.h
  2. 4
      libavcodec/mqcenc.c

@ -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 */

@ -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);

Loading…
Cancel
Save