1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

Enable the img_resample (old) code even if ffmpeg is built with libswscale

support.  There were patches floating around for other OSes that did
something similar.  While applications should be moving to libswscale,
some (e.g. vlc) haven't gotten there yet.
This commit is contained in:
Joe Marcus Clarke 2008-08-14 22:08:02 +00:00
parent 04a7ee12ce
commit 2e6153f64f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218561
4 changed files with 31 additions and 9 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ffmpeg
DISTVERSION= 2008-07-27
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ahze

View File

@ -0,0 +1,12 @@
--- libavcodec/Makefile.orig 2008-08-14 14:31:06.000000000 -0400
+++ libavcodec/Makefile 2008-08-14 14:31:16.000000000 -0400
@@ -373,9 +373,7 @@ OBJS-$(HAVE_W32THREADS) +
OBJS-$(HAVE_XVMC) += xvmcvideo.o
-ifndef CONFIG_SWSCALE
OBJS += imgresample.o
-endif
# processor-specific code
ifdef HAVE_MMX

View File

@ -0,0 +1,18 @@
--- libavcodec/imgconvert.c.orig 2008-08-14 14:31:37.000000000 -0400
+++ libavcodec/imgconvert.c 2008-08-14 14:31:54.000000000 -0400
@@ -2108,7 +2108,6 @@ int img_pad(AVPicture *dst, const AVPict
}
#endif
-#ifndef CONFIG_SWSCALE
static uint8_t y_ccir_to_jpeg[256];
static uint8_t y_jpeg_to_ccir[256];
static uint8_t c_ccir_to_jpeg[256];
@@ -2628,7 +2627,6 @@ int img_convert(AVPicture *dst, int dst_
avpicture_free(tmp);
return ret;
}
-#endif
/* NOTE: we scan all the pixels to have an exact information */
static int get_alpha_info_pal8(const AVPicture *src, int width, int height)

View File

@ -218,14 +218,6 @@
# Do not install Vlc's Documents
#
pre-everything::
.if exists(${LOCALBASE}/lib/libswscale.so)
@${ECHO_CMD}
@${ECHO_CMD} 'VLC cannot find ffmpeg if it has been built with the software scaler,'
@${ECHO_CMD} 'be sure to not define WITH_SWSCALER to build it.'
@${ECHO_CMD}
.endif
post-extract:
# remove badly formatted pre-generated messages catalogs
${FIND} ${WRKSRC} -name "*.gmo" -delete