diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 22:40:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 22:40:14 +0200 |
commit | 6581b6cef47e59758573dd790668255ac4eecbd1 (patch) | |
tree | 908ea732dffdf98835b0ca884587255573ad92dc /libavcodec/dnxhdenc.c | |
parent | 1037e484f0f1c45ab0a398c78985d3b91daa410c (diff) | |
download | ffmpeg-6581b6cef47e59758573dd790668255ac4eecbd1.tar.gz |
dnxhdenc: assert ff_dnxhd_get_cid_table() return value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index b5d62bf9a1..690e64f869 100644 --- a/libavcodec/dnxhdenc.c +++ b/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; |