# List of examples to build. UTILS are files that are taken from the source
# tree directly, and GEN_EXAMPLES are files that are created from the
# examples folder.
-UTILS-$(CONFIG_DECODERS) += ivfdec.c
-ivfdec.SRCS += md5_utils.c md5_utils.h
-ivfdec.SRCS += vpx_ports/vpx_timer.h
-ivfdec.SRCS += vpx/vpx_integer.h
-ivfdec.SRCS += args.c args.h vpx_ports/config.h
-ivfdec.SRCS += nestegg/halloc/halloc.h
-ivfdec.SRCS += nestegg/halloc/src/align.h
-ivfdec.SRCS += nestegg/halloc/src/halloc.c
-ivfdec.SRCS += nestegg/halloc/src/hlist.h
-ivfdec.SRCS += nestegg/halloc/src/macros.h
-ivfdec.SRCS += nestegg/include/nestegg/nestegg.h
-ivfdec.SRCS += nestegg/src/nestegg.c
-ivfdec.GUID = BA5FE66F-38DD-E034-F542-B1578C5FB950
-ivfdec.DESCRIPTION = Full featured decoder
-UTILS-$(CONFIG_ENCODERS) += ivfenc.c
-ivfenc.SRCS += args.c args.h y4minput.c y4minput.h
-ivfenc.SRCS += vpx_ports/config.h vpx_ports/mem_ops.h
-ivfenc.SRCS += vpx_ports/mem_ops_aligned.h
-ivfenc.SRCS += libmkv/EbmlIDs.h
-ivfenc.SRCS += libmkv/EbmlWriter.c
-ivfenc.SRCS += libmkv/EbmlWriter.h
-ivfenc.GUID = 548DEC74-7A15-4B2B-AFC3-AA102E7C25C1
-ivfenc.DESCRIPTION = Full featured encoder
+UTILS-$(CONFIG_DECODERS) += vpxdec.c
+vpxdec.SRCS += md5_utils.c md5_utils.h
+vpxdec.SRCS += vpx_ports/vpx_timer.h
+vpxdec.SRCS += vpx/vpx_integer.h
+vpxdec.SRCS += args.c args.h vpx_ports/config.h
+vpxdec.SRCS += nestegg/halloc/halloc.h
+vpxdec.SRCS += nestegg/halloc/src/align.h
+vpxdec.SRCS += nestegg/halloc/src/halloc.c
+vpxdec.SRCS += nestegg/halloc/src/hlist.h
+vpxdec.SRCS += nestegg/halloc/src/macros.h
+vpxdec.SRCS += nestegg/include/nestegg/nestegg.h
+vpxdec.SRCS += nestegg/src/nestegg.c
+vpxdec.GUID = BA5FE66F-38DD-E034-F542-B1578C5FB950
+vpxdec.DESCRIPTION = Full featured decoder
+UTILS-$(CONFIG_ENCODERS) += vpxenc.c
+vpxenc.SRCS += args.c args.h y4minput.c y4minput.h
+vpxenc.SRCS += vpx_ports/config.h vpx_ports/mem_ops.h
+vpxenc.SRCS += vpx_ports/mem_ops_aligned.h
+vpxenc.SRCS += libmkv/EbmlIDs.h
+vpxenc.SRCS += libmkv/EbmlWriter.c
+vpxenc.SRCS += libmkv/EbmlWriter.h
+vpxenc.GUID = 548DEC74-7A15-4B2B-AFC3-AA102E7C25C1
+vpxenc.DESCRIPTION = Full featured encoder
+
+# Clean up old ivfenc, ivfdec binaries.
+ifeq ($(CONFIG_MSVS),yes)
+CLEAN-OBJS += $(foreach p,$(VS_PLATFORMS),$(p)/Release/ivfenc.exe)
+CLEAN-OBJS += $(foreach p,$(VS_PLATFORMS),$(p)/Release/ivfdec.exe)
+else
+CLEAN-OBJS += ivfenc{.c.o,.c.d,.dox,.exe}
+CLEAN-OBJS += ivfdec{.c.o,.c.d,.dox,.exe}
+endif
# XMA example disabled for now, not used in VP8
#UTILS-$(CONFIG_DECODERS) += example_xma.c
Ebml_SerializeUnsigned(ebml, TimecodeScale, 1000000);
Ebml_SerializeFloat(ebml, Segment_Duration,
ebml->last_pts_ms + frame_time);
- Ebml_SerializeString(ebml, 0x4D80, "ivfenc" VERSION_STRING);
- Ebml_SerializeString(ebml, 0x5741, "ivfenc" VERSION_STRING);
+ Ebml_SerializeString(ebml, 0x4D80, "vpxenc" VERSION_STRING);
+ Ebml_SerializeString(ebml, 0x5741, "vpxenc" VERSION_STRING);
Ebml_EndSubElement(ebml, &startInfo);
}
}