mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 14:22:12 +00:00
Merge commit 'a92538b7c0defc86c55fb91f55dfa36aad192673'
* commit 'a92538b7c0defc86c55fb91f55dfa36aad192673': ivi_common: Make sure color planes have been initialized Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
8d0b899e38
@ -999,6 +999,11 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
|||||||
return AVERROR_PATCHWELCOME;
|
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);
|
ctx->switch_buffers(ctx);
|
||||||
|
|
||||||
//{ START_TIMER;
|
//{ START_TIMER;
|
||||||
|
Loading…
Reference in New Issue
Block a user