mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
indeo3: Check remaining bits in parse_bintree()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a7cfef2994
commit
e9e642cbfb
@ -736,7 +736,7 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
|
|||||||
ref_cell->width -= curr_cell.width;
|
ref_cell->width -= curr_cell.width;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1) { /* loop until return */
|
while (get_bits_left(&ctx->gb) >= 2) { /* loop until return */
|
||||||
RESYNC_BITSTREAM;
|
RESYNC_BITSTREAM;
|
||||||
switch (code = get_bits(&ctx->gb, 2)) {
|
switch (code = get_bits(&ctx->gb, 2)) {
|
||||||
case H_SPLIT:
|
case H_SPLIT:
|
||||||
@ -789,7 +789,7 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
}//while
|
}//while
|
||||||
|
|
||||||
return 0;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user