diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c
index 2bedc08324953b194e9a72ed9cd2f3f13df53dea..ee862bbc7b8f668c7a1ce204f54da9e5fb334c10 100644
--- a/libavcodec/cavs.c
+++ b/libavcodec/cavs.c
@@ -1319,7 +1319,7 @@ static int decode_seq_header(AVSContext *h) {
     return 0;
 }
 
-void ff_cavs_flush(AVCodecContext * avctx) {
+static void cavs_flush(AVCodecContext * avctx) {
     AVSContext *h = avctx->priv_data;
     h->got_keyframe = 0;
 }
@@ -1456,7 +1456,7 @@ AVCodec cavs_decoder = {
     cavs_decode_end,
     cavs_decode_frame,
     CODEC_CAP_DR1 | CODEC_CAP_DELAY,
-    .flush= ff_cavs_flush,
+    .flush= cavs_flush,
 };
 #endif /* CONFIG_CAVS_DECODER */