diff --git a/ffmpeg.c b/ffmpeg.c
index 9d744914d7a7b7e92cf0f4919294961d07f7fcae..c53b8e65ff9247fcc5f3b8fe4d26af3777a7f087 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1488,6 +1488,7 @@ static void print_sdp(AVFormatContext **avc, int n)
 
     avf_sdp_create(avc, n, sdp, sizeof(sdp));
     printf("SDP:\n%s\n", sdp);
+    fflush(stdout);
 }
 
 static int stream_index_from_inputs(AVFormatContext **input_files,