freebsd-ports/multimedia/ffmpeg/files/patch-libavcodec_imgconvert.c
Joe Marcus Clarke 2e6153f64f 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.
2008-08-14 22:08:02 +00:00

18 lines
605 B
C

--- 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)