Commit a87ada53 authored by Michael Niedermayer's avatar Michael Niedermayer

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

"Fixes" CID1322361
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9e704755
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment