Commit 6581b6ce authored by Michael Niedermayer's avatar Michael Niedermayer

dnxhdenc: assert ff_dnxhd_get_cid_table() return value

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1037e484
......@@ -272,6 +272,7 @@ static int dnxhd_encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid);
index = ff_dnxhd_get_cid_table(ctx->cid);
av_assert0(index >= 0);
ctx->cid_table = &ff_dnxhd_cid_table[index];
ctx->m.avctx = avctx;
......
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