Commit 96037382 authored by Kostya Shishkov's avatar Kostya Shishkov
Browse files

indeo: check that band output buffer exists

parent 23ba1503
......@@ -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");
band->ref_buf = band->bufs[ctx->ref_buf];
band->data_ptr = ctx->frame_data + (get_bits_count(&ctx->gb) >> 3);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment