mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
dnxhdenc: check negative index
CC: libav-stable@libav.org Bug-Id: CID 700464
This commit is contained in:
parent
b1b1a7370e
commit
e3f50f2471
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user