avcodec/jpeg2000dec: Initialize ret to avoid warning and make the code more robust

"Fixes" CID1322361

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-09-05 00:33:59 +02:00
parent 9e70475551
commit a87ada53c3

View File

@ -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;