diff --git a/libavformat/Makefile b/libavformat/Makefile
index 110e683b2e3d67992ac6577cad8195ef89cfdffd..d459bdf21543bd3d791b84157041d94875326114 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -390,4 +390,4 @@ TOOLS     = aviocat                                                     \
             pktdumper                                                   \
             probetest                                                   \
 
-$(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale)
+$(SUBDIR)output-example$(EXESUF): ELIBS = $(patsubst %,$(LD_LIB),swscale avutil)