lavc/psd: Remove an uninitialized variable.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 30 Dec 2016 11:08:26 +0000 (12:08 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 30 Dec 2016 11:08:26 +0000 (12:08 +0100)
libavcodec/psd.c

index d5a4f52..3181a41 100644 (file)
@@ -64,7 +64,7 @@ typedef struct PSDContext {
 
 static int decode_header(PSDContext * s)
 {
-    int signature, version, color_mode, compression;
+    int signature, version, color_mode;
     int64_t len_section;
     int ret = 0;
 
@@ -207,7 +207,7 @@ static int decode_header(PSDContext * s)
         return AVERROR_PATCHWELCOME;
         break;
     default:
-        av_log(s->avctx, AV_LOG_ERROR, "Unknown compression %d.\n", compression);
+        av_log(s->avctx, AV_LOG_ERROR, "Unknown compression %d.\n", s->compression);
         return AVERROR_INVALIDDATA;
     }