git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299d8ab
)
tiffenc: initialize return value
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 9 Nov 2014 07:48:43 +0000
(08:48 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 24 Nov 2014 01:30:15 +0000
(
01:30
+0000)
'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
libavcodec/tiffenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiffenc.c
b/libavcodec/tiffenc.c
index
b28f72b
..
580cbcf
100644
(file)
--- 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;