[Ffmpeg-devel] [PATCH] enable libswscale
Diego Biurrun
diego
Sat Aug 5 00:29:38 CEST 2006
On Sat, Aug 05, 2006 at 12:09:42AM +0200, Luca Abeni wrote:
>
> To use it, apply the patch to the ffmpeg tree, copy libswscale from the
> mplayer tree, copy mplayer/asmalign.h into ffmpeg/libswscale, and copy
> mplayer/libmpcodecs/img_format.h into ffmpeg/libswscale (such copies
> will be handled with the external svn property).
Careful, svn:externals only works for directories, not files.
> The patch works, but I am not sure if the configure and makefiles
> changes can be implemented in a better way; comments from the
> maintainers of such subsystems would be very useful.
Here we go..
> --- configure (revision 5933)
> +++ configure (working copy)
> @@ -1526,6 +1534,7 @@
> if test "$network" = "yes" ; then
> echo "IPv6 support $ipv6"
> fi
> +echo "Software Scaler enabled $swscaler"
Put this next to pp.
> @@ -1898,6 +1910,12 @@
> echo "CONFIG_X264=yes" >> config.mak
> fi
>
> +if test "$swscaler" = "yes" ; then
> + echo "#define CONFIG_SWSCALER 1" >> $TMPH
> + echo "CONFIG_SWSCALER=yes" >> config.mak
> + extralibs="$extralibs -lswscale"
> +fi
Put this next to pp as well.
What is extralibs for? It won't have an effect there anyway since
EXTRALIBS is written to config.mak before.
Patch looks OK otherwise.
Diego
More information about the ffmpeg-devel
mailing list