[FFmpeg-cvslog] dnxhdenc: assert ff_dnxhd_get_cid_table() return value

Michael Niedermayer git at videolan.org
Sun Oct 14 00:14:05 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 13 22:40:14 2012 +0200| [6581b6cef47e59758573dd790668255ac4eecbd1] | committer: Michael Niedermayer

dnxhdenc: assert ff_dnxhd_get_cid_table() return value

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6581b6cef47e59758573dd790668255ac4eecbd1
---

 libavcodec/dnxhdenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index b5d62bf..690e64f 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;



More information about the ffmpeg-cvslog mailing list