diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c
index 3e9ccc8d7486fc475042a2f098662fbc00c472c0..560c5c82dc3392f8f2002f38e277436f838f79bd 100644
--- a/libavfilter/af_join.c
+++ b/libavfilter/af_join.c
@@ -470,8 +470,8 @@ static int join_request_frame(AVFilterLink *outlink)
     frame->nb_samples     = nb_samples;
     frame->channel_layout = outlink->channel_layout;
     av_frame_set_channels(frame, outlink->channels);
-    frame->format         = outlink->format;
     frame->sample_rate    = outlink->sample_rate;
+    frame->format         = outlink->format;
     frame->pts            = s->input_frames[0]->pts;
     frame->linesize[0]    = linesize;
     if (frame->data != frame->extended_data) {