diff --git a/avprobe.c b/avprobe.c
index 3843af9b728b0f12528614c67073afe1d7271a3b..d502421416451a62003e9366ab8eee5afe2a2adc 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -277,7 +277,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
 
 
     /* fill the streams in the format context */
-    if ((err = av_find_stream_info(fmt_ctx)) < 0) {
+    if ((err = avformat_find_stream_info(fmt_ctx, NULL)) < 0) {
         print_error(filename, err);
         return err;
     }
diff --git a/avserver.c b/avserver.c
index f31b8ddb013616e8167cbf608cff0eab4a6bacae..2b028a3f4e264cddb21efaea0b65de44fc8dfe53 100644
--- a/avserver.c
+++ b/avserver.c
@@ -2162,7 +2162,7 @@ static int open_input_stream(HTTPContext *c, const char *info)
     }
     s->flags |= AVFMT_FLAG_GENPTS;
     c->fmt_in = s;
-    if (strcmp(s->iformat->name, "ffm") && av_find_stream_info(c->fmt_in) < 0) {
+    if (strcmp(s->iformat->name, "ffm") && avformat_find_stream_info(c->fmt_in, NULL) < 0) {
         http_log("Could not find stream info '%s'\n", input_filename);
         av_close_input_file(s);
         return -1;
@@ -3621,7 +3621,7 @@ static void build_file_streams(void)
             } else {
                 /* find all the AVStreams inside and reference them in
                    'stream' */
-                if (av_find_stream_info(infile) < 0) {
+                if (avformat_find_stream_info(infile, NULL) < 0) {
                     http_log("Could not find codec parameters from '%s'\n",
                              stream->feed_filename);
                     av_close_input_file(infile);
diff --git a/libavformat/seek-test.c b/libavformat/seek-test.c
index 71b2a2d6c03c7094621f715036e683221d0dd2fa..3dd60dc1608ac6ccf62e6b74491b1038386924dc 100644
--- a/libavformat/seek-test.c
+++ b/libavformat/seek-test.c
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
         exit(1);
     }
 
-    ret = av_find_stream_info(ic);
+    ret = avformat_find_stream_info(ic, NULL);
     if (ret < 0) {
         fprintf(stderr, "%s: could not find codec parameters\n", filename);
         exit(1);
diff --git a/tools/pktdumper.c b/tools/pktdumper.c
index 80816d24b9e6a672168356b76f66160f1447de16..56bc7b7ce0a2909a52be7f849d0fbb14e271cc7c 100644
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -89,9 +89,9 @@ int main(int argc, char **argv)
         return 1;
     }
 
-    err = av_find_stream_info(fctx);
+    err = avformat_find_stream_info(fctx, NULL);
     if (err < 0) {
-        fprintf(stderr, "av_find_stream_info: error %d\n", err);
+        fprintf(stderr, "avformat_find_stream_info: error %d\n", err);
         return 1;
     }