dnxhdenc: assert ff_dnxhd_get_cid_table() return value

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/6/head
Michael Niedermayer 12 years ago
parent 1037e484f0
commit 6581b6cef4
  1. 1
      libavcodec/dnxhdenc.c

@ -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;

Loading…
Cancel
Save