[FFmpeg-devel,v2] avcodec/cfhd: fix compiling warning message and leave the code

Submitted by Steven Liu on June 27, 2019, 11:12 p.m.

Details

Message ID 20190627231255.922-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu June 27, 2019, 11:12 p.m.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavcodec/cfhd.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 846d334b9b..1e2ab28dfb 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -136,6 +136,11 @@  static inline void peak_table(int16_t *band, Peak *peak, int length)
             band[i] = bytestream2_get_le16(&peak->base);
 }
 
+#if 0
+/* NOTE:
+ *    There have no caller now,
+ *    but maybe it will be used in the future.
+ * */
 static inline void process_alpha(int16_t *alpha, int width)
 {
     int i, channel;
@@ -149,7 +154,7 @@  static inline void process_alpha(int16_t *alpha, int width)
         alpha[i]  = channel;
     }
 }
-
+#endif
 static inline void filter(int16_t *output, ptrdiff_t out_stride,
                           int16_t *low, ptrdiff_t low_stride,
                           int16_t *high, ptrdiff_t high_stride,