mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-11 21:23:42 +00:00
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:
parent
9e70475551
commit
a87ada53c3
@ -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…
Reference in New Issue
Block a user