diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c
index 5163417e5dd1d648bc4c33d17ae9858fff26e819..02f4da98c4e4050bf0c61118c2fd49dbdaa1a9ce 100644
--- a/libavformat/yuv4mpeg.c
+++ b/libavformat/yuv4mpeg.c
@@ -373,11 +373,6 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
     return 0;
 }
 
-static int yuv4_read_close(AVFormatContext *s)
-{
-    return 0;
-}
-
 static int yuv4_probe(AVProbeData *pd)
 {
     /* check file header */
@@ -395,7 +390,6 @@ AVInputFormat yuv4mpegpipe_demuxer = {
     yuv4_probe,
     yuv4_read_header,
     yuv4_read_packet,
-    yuv4_read_close,
     .extensions = "y4m"
 };
 #endif