diff --git a/libavformat/internal.h b/libavformat/internal.h
index 15f4dd7848c0253343da9a74272087d0c8a4ab8c..685b550673349ecf208c8c92513499c110f149d6 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -35,4 +35,6 @@ void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int i
 void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
                               int (*compare)(AVFormatContext *, AVPacket *, AVPacket *));
 
+void av_read_frame_flush(AVFormatContext *s);
+
 #endif /* AVFORMAT_INTERNAL_H */
diff --git a/libavformat/seek.c b/libavformat/seek.c
index 3f77b342e3c31a02992dcbf79a5a5b874e824db5..685cbbfe14ee26772325451f0a58b65b358a393e 100644
--- a/libavformat/seek.c
+++ b/libavformat/seek.c
@@ -25,7 +25,6 @@
 
 // NOTE: implementation should be moved here in another patch, to keep patches
 // separated.
-extern void av_read_frame_flush(AVFormatContext *s);
 
 /**
  * helper structure describing keyframe search state of one stream