diff --git a/libavformat/Makefile b/libavformat/Makefile
index 7c46573fe21df34b0df3ce0f184acbb70d9d6b5d..a20a7eb764cf2977b9869bf16e671e09d38a92f9 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -20,6 +20,7 @@ OBJS+=mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o raw.o rm.o \
 
 ifeq ($(CONFIG_RISKY),yes)
 OBJS+= asf.o
+OBJS+= asf-enc.o
 endif
 
 ifeq ($(AMR_NB),yes)