mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
indeo3: Fix null ptr dereference
Fixes Ticket804 Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fc739b79ad
commit
134aaa79f7
@ -770,6 +770,7 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
|
||||
/* get motion vector index and setup the pointer to the mv set */
|
||||
if (!ctx->need_resync)
|
||||
ctx->next_cell_data = &ctx->gb.buffer[(get_bits_count(&ctx->gb) + 7) >> 3];
|
||||
if(ctx->mc_vectors)
|
||||
curr_cell.mv_ptr = &ctx->mc_vectors[*(ctx->next_cell_data++) << 1];
|
||||
curr_cell.tree = 1; /* enter the VQ tree */
|
||||
UPDATE_BITPOS(8);
|
||||
|
Loading…
Reference in New Issue
Block a user