You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
dnxhdenc: check negative index
CC: libav-stable@libav.org Bug-Id: CID 700464
This commit is contained in:
@ -299,6 +299,8 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
|
|||||||
av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid);
|
av_log(avctx, AV_LOG_DEBUG, "cid %d\n", ctx->cid);
|
||||||
|
|
||||||
index = ff_dnxhd_get_cid_table(ctx->cid);
|
index = ff_dnxhd_get_cid_table(ctx->cid);
|
||||||
|
if (index < 0)
|
||||||
|
return index;
|
||||||
ctx->cid_table = &ff_dnxhd_cid_table[index];
|
ctx->cid_table = &ff_dnxhd_cid_table[index];
|
||||||
|
|
||||||
ctx->m.avctx = avctx;
|
ctx->m.avctx = avctx;
|
||||||
|
Reference in New Issue
Block a user