Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-17 00:20:22 +0300
committerTimothy Gu <timothygu99@gmail.com>2015-09-17 02:31:29 +0300
commit80d23d9d32d0a310f85d9623337d8681be080aa8 (patch)
tree72fa8f3f86da564de9765d2b3ad99491a315d1eb /libswscale
parent9aaa54135c2003ef04ad98cb20739b0b25c7271a (diff)
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@gmail.com>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 9558048a56..120bba1cec 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)