mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
indeo: check that band output buffer exists
This commit is contained in:
parent
23ba1503f2
commit
9603738221
@ -641,6 +641,10 @@ static int decode_band(IVI45DecContext *ctx, int plane_num,
|
||||
IVITile *tile;
|
||||
|
||||
band->buf = band->bufs[ctx->dst_buf];
|
||||
if (!band->buf) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Band buffer points to no data!\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
band->ref_buf = band->bufs[ctx->ref_buf];
|
||||
band->data_ptr = ctx->frame_data + (get_bits_count(&ctx->gb) >> 3);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user