[FFmpeg-cvslog] amrnbdec: silence a warning about unsigned cant be negative

Michael Niedermayer git at videolan.org
Thu Sep 6 04:18:56 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep  6 00:41:51 2012 +0200| [52fa5cea0377974618e8c6486ee0830c2ed9d96a] | committer: Michael Niedermayer

amrnbdec: silence a warning about unsigned cant be negative

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

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

 libavcodec/amrnbdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/amrnbdec.c b/libavcodec/amrnbdec.c
index b6b93dc..32b754f 100644
--- a/libavcodec/amrnbdec.c
+++ b/libavcodec/amrnbdec.c
@@ -492,7 +492,7 @@ static void decode_8_pulses_31bits(const int16_t *fixed_index,
 static void decode_fixed_sparse(AMRFixed *fixed_sparse, const uint16_t *pulses,
                                 const enum Mode mode, const int subframe)
 {
-    av_assert1(MODE_4k75 <= mode && mode <= MODE_12k2);
+    av_assert1(MODE_4k75 <= (signed)mode && mode <= MODE_12k2);
 
     if (mode == MODE_12k2) {
         ff_decode_10_pulses_35bits(pulses, fixed_sparse, gray_decode, 5, 3);



More information about the ffmpeg-cvslog mailing list