Commit e3f50f24 authored by Vittorio Giovara's avatar Vittorio Giovara

dnxhdenc: check negative index

CC: libav-stable@libav.org
Bug-Id: CID 700464
parent b1b1a737
......@@ -299,6 +299,8 @@ static av_cold 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);
if (index < 0)
return index;
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