Browse Source

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

"Fixes" CID1322361

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
a87ada53c3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/jpeg2000dec.c

+ 2
- 1
libavcodec/jpeg2000dec.c 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;


Loading…
Cancel
Save