# HG changeset patch # User diego # Date 1229172989 0 # Node ID 2eaafc02cd3d4a3d30872731a2ef58fb90e345f8 # Parent 87ae12cd9db05abe555d09eaf32b200bc23c4d0a Add img_convert() to imgconvert.h and #include it from imgresample.c. This fixes an implicit declaration of img_convert() warning. taken from a patchset from Anders Grnberg, galileo.m2 gmail com diff -r 87ae12cd9db0 -r 2eaafc02cd3d imgconvert.h --- a/imgconvert.h Sat Dec 13 10:53:30 2008 +0000 +++ b/imgconvert.h Sat Dec 13 12:56:29 2008 +0000 @@ -33,4 +33,7 @@ int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane); +int img_convert(AVPicture *dst, int dst_pix_fmt, const AVPicture *src, + int src_pix_fmt, int src_width, int src_height); + #endif /* AVCODEC_IMGCONVERT_H */ diff -r 87ae12cd9db0 -r 2eaafc02cd3d imgresample.c --- a/imgresample.c Sat Dec 13 10:53:30 2008 +0000 +++ b/imgresample.c Sat Dec 13 12:56:29 2008 +0000 @@ -26,6 +26,7 @@ #include "avcodec.h" #include "dsputil.h" +#include "imgconvert.h" #include "libswscale/swscale.h" #ifdef HAVE_ALTIVEC