aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-04-19 14:55:49 +0200
committerDiego Biurrun <diego@biurrun.de>2012-05-09 18:12:28 +0200
commit727af82a84999c6fbd30856c42ac1477e8fbe011 (patch)
tree7634db52483b96994930c607c5aeb03e6b7e5b55
parent454b1f9b5831ff53d098be737feb7b1e3d73f1d3 (diff)
downloadffmpeg-727af82a84999c6fbd30856c42ac1477e8fbe011.tar.gz
jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse().
libavcodec/jpeglsdec.c:54:9: warning: variable ‘len’ set but not used
-rw-r--r--libavcodec/jpeglsdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c
index 43bf7652b7..25b3c3068f 100644
--- a/libavcodec/jpeglsdec.c
+++ b/libavcodec/jpeglsdec.c
@@ -51,10 +51,9 @@
*/
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){