[FFmpeg-cvslog] libswscale/swscale: fix -Wunused-function

Ganesh Ajjanagadde git at videolan.org
Fri Sep 18 23:37:14 CEST 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Fri Sep 18 16:35:33 2015 -0400| [b4cb597900152e5abf90ac62ebfa18c78931a580] | committer: Michael Niedermayer

libswscale/swscale: fix -Wunused-function

hyscale, hcscale are only used in old filter code, hence place
header guard to silence -Wunused-function.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4cb597900152e5abf90ac62ebfa18c78931a580
---

 libswscale/swscale.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 120bba1..f4aa41b 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -240,6 +240,7 @@ static void lumRangeFromJpeg16_c(int16_t *_dst, int width)
         dst[i] = (dst[i]*(14071/4) + (33561947<<4)/4)>>12;
 }
 
+#ifndef NEW_FILTER
 // *** horizontal scale Y line to temp buffer
 static av_always_inline void hyscale(SwsContext *c, int16_t *dst, int dstWidth,
                                      const uint8_t *src_in[4],
@@ -311,6 +312,7 @@ static av_always_inline void hcscale(SwsContext *c, int16_t *dst1,
     if (c->chrConvertRange)
         c->chrConvertRange(dst1, dst2, dstWidth);
 }
+#endif /* NEW_FILTER */
 
 #define DEBUG_SWSCALE_BUFFERS 0
 #define DEBUG_BUFFERS(...)                      \



More information about the ffmpeg-cvslog mailing list