Mercurial > mplayer.hg
changeset 11141:1ed8e514c725
Fix compilation when libavcodec is missing.
Patch by Nico <nsabbi@libero.it>
author | attila |
---|---|
date | Thu, 16 Oct 2003 08:45:10 +0000 |
parents | 4d6a0bfe770e |
children | 7befd2f5e112 |
files | cfg-common.h configure libmpcodecs/Makefile libmpcodecs/vf.c |
diffstat | 4 files changed, 16 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/cfg-common.h Thu Oct 16 08:26:40 2003 +0000 +++ b/cfg-common.h Thu Oct 16 08:45:10 2003 +0000 @@ -166,7 +166,7 @@ {"oldpp", "MPlayer was compiled without opendivx library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, #endif {"npp", "-npp has been removed, use -vop pp and read the fine manual\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, -#ifdef USE_LIBAVCODEC +#ifdef FF_POSTPROCESS {"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL}, #endif
--- a/configure Thu Oct 16 08:26:40 2003 +0000 +++ b/configure Thu Oct 16 08:45:10 2003 +0000 @@ -3289,6 +3289,7 @@ if test "$_dvb" = yes || test "$_dvbhead" = yes ; then _dvbin=yes + _inputmodules="dvb $_inputmodules" else _dvbin=no fi @@ -4769,6 +4770,11 @@ echores "$_libavcodec" fi +_def_haveffpostprocess='no' +if test -d libavcodec && test -f libavcodec/libpostproc/postprocess.h ; then + _def_haveffpostprocess='yes' +fi + if test "$_libavcodec" != yes ; then echocheck "FFmpeg libavcodec (dynamic)" if test "$_libavcodecso" = auto ; then @@ -4806,7 +4812,6 @@ _def_libavcodec='#define USE_LIBAVCODEC 1' _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' _ld_libavcodec='-lavcodec' - _def_ffpostprocess='#define FF_POSTPROCESS 1' _codecmodules="libavcodec.so $_codecmodules" else _nocodecmodules="libavcodec $_nocodecmodules" @@ -5676,7 +5681,7 @@ OPENDIVX = $_opendivx UNRARLIB = $_unrarlib - +HAVE_FFPOSTPROCESS = $_def_haveffpostprocess PNG = $_mkf_png JPEG = $_mkf_jpg GIF = $_mkf_gif
--- a/libmpcodecs/Makefile Thu Oct 16 08:26:40 2003 +0000 +++ b/libmpcodecs/Makefile Thu Oct 16 08:45:10 2003 +0000 @@ -14,7 +14,11 @@ VIDEO_SRCS_OPT=vd_realvid.c vd_ffmpeg.c vd_dshow.c vd_dmo.c vd_vfw.c vd_vfwex.c vd_odivx.c vd_divx4.c vd_xanim.c vd_xvid.c vd_libdv.c vd_qtvideo.c vd_theora.c VIDEO_SRCS=dec_video.c vd.c $(VIDEO_SRCS_NAT) $(VIDEO_SRCS_LIB) $(VIDEO_SRCS_OPT) -VFILTER_SRCS=vf.c vf_vo.c vf_crop.c vf_expand.c vf_pp.c vf_scale.c vf_format.c vf_yuy2.c vf_flip.c vf_rgb2bgr.c vf_rotate.c vf_mirror.c vf_palette.c vf_lavc.c vf_dvbscale.c vf_cropdetect.c vf_test.c vf_noise.c vf_yvu9.c vf_rectangle.c vf_lavcdeint.c vf_eq.c vf_eq2.c vf_halfpack.c vf_dint.c vf_1bpp.c vf_bmovl.c vf_2xsai.c vf_unsharp.c vf_swapuv.c vf_il.c vf_boxblur.c vf_sab.c vf_smartblur.c vf_perspective.c vf_down3dright.c vf_field.c vf_denoise3d.c vf_hqdn3d.c vf_detc.c vf_telecine.c vf_tfields.c vf_ivtc.c vf_ilpack.c vf_dsize.c vf_decimate.c vf_softpulldown.c vf_tinterlace.c vf_pullup.c pullup.c vf_framestep.c vf_tile.c vf_delogo.c +VFILTER_SRCS=vf.c vf_vo.c vf_crop.c vf_expand.c vf_scale.c vf_format.c vf_yuy2.c vf_flip.c vf_rgb2bgr.c vf_rotate.c vf_mirror.c vf_palette.c vf_lavc.c vf_dvbscale.c vf_cropdetect.c vf_test.c vf_noise.c vf_yvu9.c vf_rectangle.c vf_lavcdeint.c vf_eq.c vf_eq2.c vf_halfpack.c vf_dint.c vf_1bpp.c vf_bmovl.c vf_2xsai.c vf_unsharp.c vf_swapuv.c vf_il.c vf_boxblur.c vf_sab.c vf_smartblur.c vf_perspective.c vf_down3dright.c vf_field.c vf_denoise3d.c vf_hqdn3d.c vf_detc.c vf_telecine.c vf_tfields.c vf_ivtc.c vf_ilpack.c vf_dsize.c vf_decimate.c vf_softpulldown.c vf_tinterlace.c vf_pullup.c pullup.c vf_framestep.c vf_tile.c vf_delogo.c +ifeq ($(HAVE_FFPOSTPROCESS),yes) +VFILTER_SRCS += vf_pp.c +endif + ENCODER_SRCS=ve.c ve_divx4.c ve_lavc.c ve_vfw.c ve_rawrgb.c ve_libdv.c ve_xvid.c ve_qtvideo.c ve_nuv.c NATIVE_SRCS=native/RTjpegN.c native/cinepak.c native/fli.c native/minilzo.c native/msvidc.c native/nuppelvideo.c native/qtrle.c native/qtrpza.c native/qtsmc.c native/roqav.c native/xa_gsm.c native/decode144.c native/decode288.c
--- a/libmpcodecs/vf.c Thu Oct 16 08:26:40 2003 +0000 +++ b/libmpcodecs/vf.c Thu Oct 16 08:45:10 2003 +0000 @@ -26,7 +26,9 @@ #endif extern vf_info_t vf_info_crop; extern vf_info_t vf_info_expand; +#ifdef FF_POSTPROCESS extern vf_info_t vf_info_pp; +#endif extern vf_info_t vf_info_scale; #ifdef USE_LIBFAME extern vf_info_t vf_info_fame; @@ -84,7 +86,7 @@ #endif &vf_info_crop, &vf_info_expand, -#ifdef USE_LIBAVCODEC +#ifdef FF_POSTPROCESS &vf_info_pp, #endif &vf_info_scale,