Commit 8d0b899e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a92538b7'

* commit 'a92538b7':
  ivi_common: Make sure color planes have been initialized
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7f20440b a92538b7
......@@ -999,6 +999,11 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
return AVERROR_PATCHWELCOME;
}
if (!ctx->planes[0].bands) {
av_log(avctx, AV_LOG_ERROR, "Color planes not initialized yet\n");
return AVERROR_INVALIDDATA;
}
ctx->switch_buffers(ctx);
//{ START_TIMER;
......
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