[FFmpeg-cvslog] swscale/swscale: silence unused function warning
Ganesh Ajjanagadde
git at videolan.org
Thu Sep 17 01:31:38 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Sep 16 17:20:22 2015 -0400| [80d23d9d32d0a310f85d9623337d8681be080aa8] | committer: Timothy Gu
swscale/swscale: silence unused function warning
gamma_convert is only used with the old code. Thus, it is
placed under a header guard. This patch silences a -Wunused-function
observed on GCC 5.2.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80d23d9d32d0a310f85d9623337d8681be080aa8
---
libswscale/swscale.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 9558048..120bba1 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -52,6 +52,7 @@ DECLARE_ALIGNED(8, static const uint8_t, sws_pb_64)[8] = {
64, 64, 64, 64, 64, 64, 64, 64
};
+#ifndef NEW_FILTER
static void gamma_convert(uint8_t * src[], int width, uint16_t *gamma)
{
int i;
@@ -67,6 +68,7 @@ static void gamma_convert(uint8_t * src[], int width, uint16_t *gamma)
AV_WL16(src1 + i*4 + 2, gamma[b]);
}
}
+#endif
static av_always_inline void fillPlane(uint8_t *plane, int stride, int width,
int height, int y, uint8_t val)
More information about the ffmpeg-cvslog
mailing list