aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/psd.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-12-30 12:08:26 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-12-30 12:08:26 +0100
commitec2f3b1f57fd5fc01c8ddb0c927112a18bcd7cba (patch)
tree650eab0df026bcb9366c158ac6b11a6861693709 /libavcodec/psd.c
parent6993bb4eb6c358c390f674a10f8a8ca69d9ee0fe (diff)
downloadffmpeg-ec2f3b1f57fd5fc01c8ddb0c927112a18bcd7cba.tar.gz
lavc/psd: Remove an uninitialized variable.
Diffstat (limited to 'libavcodec/psd.c')
-rw-r--r--libavcodec/psd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/psd.c b/libavcodec/psd.c
index d5a4f52fd5..3181a41d48 100644
--- a/libavcodec/psd.c
+++ b/libavcodec/psd.c
@@ -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;
}