jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse().
authorDiego Biurrun <diego@biurrun.de>
Thu, 19 Apr 2012 12:55:49 +0000 (14:55 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 9 May 2012 16:12:28 +0000 (18:12 +0200)
libavcodec/jpeglsdec.c:54:9: warning: variable ‘len’ set but not used

libavcodec/jpeglsdec.c

index 43bf765..25b3c30 100644 (file)
  */
 int ff_jpegls_decode_lse(MJpegDecodeContext *s)
 {
-    int len, id;
+    int id;
 
-    /* XXX: verify len field validity */
-    len = get_bits(&s->gb, 16);
+    skip_bits(&s->gb, 16);  /* length: FIXME: verify field validity */
     id = get_bits(&s->gb, 8);
 
     switch(id){