diff --git a/libavcodec/metasound.c b/libavcodec/metasound.c
index 5c65f038d5fe7abdf1f9983d10c7f6447b632743..597c33351fbbb4f2b5d3ea8a8161bb48078a33d6 100644
--- a/libavcodec/metasound.c
+++ b/libavcodec/metasound.c
@@ -313,7 +313,7 @@ static av_cold int metasound_decode_init(AVCodecContext *avctx)
     default:
         av_log(avctx, AV_LOG_ERROR,
                "This version does not support %d kHz - %d kbit/s/ch mode.\n",
-               isampf, isampf);
+               isampf, ibps);
         return AVERROR(ENOSYS);
     }