diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c
index 8232a187e265b66146734bae9ce6805d51fddc2d..579cf0e1e31d71df4add1a55267c3078cf9eb583 100644
--- a/libavdevice/jack_audio.c
+++ b/libavdevice/jack_audio.c
@@ -144,7 +144,7 @@ static int start_jack(AVFormatContext *context, AVFormatParameters *params)
     double o, period;
 
     /* Register as a JACK client, using the context filename as client name. */
-    self->client = jack_client_open(context->filename, 0, &status);
+    self->client = jack_client_open(context->filename, JackNullOption, &status);
     if (!self->client) {
         av_log(context, AV_LOG_ERROR, "Unable to register as a JACK client\n");
         return AVERROR(EIO);