Commit 88fa8319 authored by michael's avatar michael

XviD Support patch by (Adam Thayer <krevnik at comcast dot net>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3325 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c99dce35
...@@ -58,6 +58,10 @@ ifeq ($(CONFIG_FAAC),yes) ...@@ -58,6 +58,10 @@ ifeq ($(CONFIG_FAAC),yes)
EXTRALIBS+=-lfaac EXTRALIBS+=-lfaac
endif endif
ifeq ($(CONFIG_XVID),yes)
EXTRALIBS+=-lxvidcore
endif
ifeq ($(BUILD_VHOOK),yes) ifeq ($(BUILD_VHOOK),yes)
VHOOK=videohook VHOOK=videohook
INSTALLVHOOK=install-vhook INSTALLVHOOK=install-vhook
......
...@@ -19,6 +19,7 @@ echo " --enable-vorbis enable vorbis support via libvorbisenc [default ...@@ -19,6 +19,7 @@ echo " --enable-vorbis enable vorbis support via libvorbisenc [default
echo " --enable-faad enable faad support via libfaad [default=no]" echo " --enable-faad enable faad support via libfaad [default=no]"
echo " --enable-faadbin build faad support with runtime linking [default=no]" echo " --enable-faadbin build faad support with runtime linking [default=no]"
echo " --enable-faac enable faac support via libfaac [default=no]" echo " --enable-faac enable faac support via libfaac [default=no]"
echo " --enable-xvid enable xvid support via xvidcore [default=no]"
echo " --enable-mingw32 enable mingw32 native/cross windows compile" echo " --enable-mingw32 enable mingw32 native/cross windows compile"
echo " --enable-a52 enable GPL'ed A52 support [default=no]" echo " --enable-a52 enable GPL'ed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]" echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
...@@ -142,6 +143,7 @@ vorbis="no" ...@@ -142,6 +143,7 @@ vorbis="no"
faad="no" faad="no"
faadbin="no" faadbin="no"
faac="no" faac="no"
xvid="no"
a52="no" a52="no"
a52bin="no" a52bin="no"
dts="no" dts="no"
...@@ -399,6 +401,8 @@ for opt do ...@@ -399,6 +401,8 @@ for opt do
;; ;;
--enable-faac) faac="yes" --enable-faac) faac="yes"
;; ;;
--enable-xvid) xvid="yes"
;;
--disable-vhook) vhook="no" --disable-vhook) vhook="no"
;; ;;
--disable-simple_idct) simpleidct="no" --disable-simple_idct) simpleidct="no"
...@@ -449,6 +453,11 @@ if test "$gpl" != "yes"; then ...@@ -449,6 +453,11 @@ if test "$gpl" != "yes"; then
fail="yes" fail="yes"
fi fi
if test "$xvid" != "no"; then
echo "libxvidcore is under GPL and --enable-gpl is not specified"
fail="yes"
fi
if test "$dts" != "no"; then if test "$dts" != "no"; then
echo "libdts is under GPL and --enable-gpl is not specified" echo "libdts is under GPL and --enable-gpl is not specified"
fail="yes" fail="yes"
...@@ -980,6 +989,7 @@ echo "vorbis enabled $vorbis" ...@@ -980,6 +989,7 @@ echo "vorbis enabled $vorbis"
echo "faad enabled $faad" echo "faad enabled $faad"
echo "faadbin enabled $faadbin" echo "faadbin enabled $faadbin"
echo "faac enabled $faac" echo "faac enabled $faac"
echo "xvid enabled $xvid"
echo "a52 support $a52" echo "a52 support $a52"
echo "a52 dlopened $a52bin" echo "a52 dlopened $a52bin"
echo "dts support $dts" echo "dts support $dts"
...@@ -1264,6 +1274,11 @@ if test "$faac" = "yes" ; then ...@@ -1264,6 +1274,11 @@ if test "$faac" = "yes" ; then
echo "CONFIG_FAAC=yes" >> config.mak echo "CONFIG_FAAC=yes" >> config.mak
fi fi
if test "$xvid" = "yes" ; then
echo "#define CONFIG_XVID 1" >> $TMPH
echo "CONFIG_XVID=yes" >> config.mak
fi
if test "$mingw32" = "yes" ; then if test "$mingw32" = "yes" ; then
echo "#define CONFIG_WIN32 1" >> $TMPH echo "#define CONFIG_WIN32 1" >> $TMPH
echo "CONFIG_WIN32=yes" >> config.mak echo "CONFIG_WIN32=yes" >> config.mak
......
...@@ -92,6 +92,11 @@ OBJS+= faac.o ...@@ -92,6 +92,11 @@ OBJS+= faac.o
EXTRALIBS += -lfaac EXTRALIBS += -lfaac
endif endif
ifeq ($(CONFIG_XVID),yes)
OBJS+= xvidff.o
EXTRALIBS += -lxvidcore
endif
ifeq ($(CONFIG_PP),yes) ifeq ($(CONFIG_PP),yes)
ifeq ($(SHARED_PP),yes) ifeq ($(SHARED_PP),yes)
EXTRALIBS += -lpostproc EXTRALIBS += -lpostproc
......
...@@ -51,6 +51,9 @@ void avcodec_register_all(void) ...@@ -51,6 +51,9 @@ void avcodec_register_all(void)
#endif #endif
#ifdef CONFIG_FAAC #ifdef CONFIG_FAAC
register_avcodec(&faac_encoder); register_avcodec(&faac_encoder);
#endif
#ifdef CONFIG_XVID
register_avcodec(&xvid_encoder);
#endif #endif
register_avcodec(&mpeg1video_encoder); register_avcodec(&mpeg1video_encoder);
// register_avcodec(&h264_encoder); // register_avcodec(&h264_encoder);
......
...@@ -142,6 +142,7 @@ enum CodecID { ...@@ -142,6 +142,7 @@ enum CodecID {
stream (only used by libavformat) */ stream (only used by libavformat) */
CODEC_ID_DTS, CODEC_ID_DTS,
CODEC_ID_XVID,
}; };
/* CODEC_ID_MP3LAME is absolete */ /* CODEC_ID_MP3LAME is absolete */
...@@ -1724,6 +1725,7 @@ extern AVCodec mp2_encoder; ...@@ -1724,6 +1725,7 @@ extern AVCodec mp2_encoder;
extern AVCodec mp3lame_encoder; extern AVCodec mp3lame_encoder;
extern AVCodec oggvorbis_encoder; extern AVCodec oggvorbis_encoder;
extern AVCodec faac_encoder; extern AVCodec faac_encoder;
extern AVCodec xvid_encoder;
extern AVCodec mpeg1video_encoder; extern AVCodec mpeg1video_encoder;
extern AVCodec mpeg2video_encoder; extern AVCodec mpeg2video_encoder;
extern AVCodec h263_encoder; extern AVCodec h263_encoder;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment