[FFmpeg-cvslog] avcodec/diracdec: Fix "warning: comparison of constant 4 with expression of type enum dirac_subband is always true [-Wtautological-constant-out-of-range-compare]"

Michael Niedermayer git at videolan.org
Mon Sep 8 21:13:33 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep  8 20:47:47 2014 +0200| [baee313aa9a5c277cdca803cde56257466438b99] | committer: Michael Niedermayer

avcodec/diracdec: Fix "warning: comparison of constant 4 with expression of type enum dirac_subband is always true [-Wtautological-constant-out-of-range-compare]"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/diracdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index f673397..c03f45c 100644
--- a/libavcodec/diracdec.c
+++ b/libavcodec/diracdec.c
@@ -234,7 +234,8 @@ enum dirac_subband {
     subband_ll = 0,
     subband_hl = 1,
     subband_lh = 2,
-    subband_hh = 3
+    subband_hh = 3,
+    subband_nb,
 };
 
 static const uint8_t default_qmat[][4][4] = {



More information about the ffmpeg-cvslog mailing list