summaryrefslogtreecommitdiff
path: root/libavcodec/tiffenc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-09 08:48:43 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-24 01:30:15 +0000
commit0562887a984388fdc7a9b71c9374ff9c756fb4f1 (patch)
treec188b277440e7db43ac510a2c0f2221852b5d633 /libavcodec/tiffenc.c
parent299d8ab104fb350254eb2e6d9ecdce892a2a55b1 (diff)
tiffenc: initialize return value
'ret' can only be used without initialization if s->height <= 0, which can only happen if avctx->height <= 0, which is validated elsewhere. Doesn't hurt to still initialize it though. CC: libav-stable@libav.org Bug-Id: CID 732296
Diffstat (limited to 'libavcodec/tiffenc.c')
-rw-r--r--libavcodec/tiffenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index b28f72b808..580cbcf818 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -214,7 +214,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int bytes_per_row;
uint32_t res[2] = { 72, 1 }; // image resolution (72/1)
uint16_t bpp_tab[] = { 8, 8, 8, 8 };
- int ret;
+ int ret = 0;
int is_yuv = 0;
uint8_t *yuv_line = NULL;
int shift_h, shift_v;