aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-09-05 00:33:59 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-05 00:38:21 +0200
commita87ada53c39c983ad20c86983c3bedfd56e7e8eb (patch)
treeb846a9ff95f10a7bb1589363484ff2fc46be574e /libavcodec
parent9e704755515f504f4d454a1349a82885547d77ab (diff)
downloadffmpeg-a87ada53c39c983ad20c86983c3bedfd56e7e8eb.tar.gz
avcodec/jpeg2000dec: Initialize ret to avoid warning and make the code more robust
"Fixes" CID1322361 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/jpeg2000dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 8a803e7022..a414dc1ebf 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -1303,7 +1303,8 @@ static int jpeg2000_decode_packets_po_iteration(Jpeg2000DecoderContext *s, Jpeg2
static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
{
- int ret, i;
+ int ret = AVERROR_BUG;
+ int i;
int tp_index = 0;
s->bit_index = 8;