[FFmpeg-cvslog] avcodec/jpeg2000dec: Remove redundant check

Michael Niedermayer git at videolan.org
Mon Jun 15 13:42:52 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 15 03:11:58 2015 +0200| [9ba5fe7f3d9fca735850d3ecef8ccb3c25e712b7] | committer: Michael Niedermayer

avcodec/jpeg2000dec: Remove redundant check

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

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

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

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index d00ef10..5ec929d 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -1125,7 +1125,7 @@ static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile
                             continue;
                         }
 
-                        if (reslevelno < codsty->nreslevels) {
+                        {
                             Jpeg2000ResLevel *rlevel = tile->comp[compno].reslevel +
                                                     reslevelno;
                             ok_reslevel = 1;



More information about the ffmpeg-cvslog mailing list