OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1037e48
)
dnxhdenc: assert ff_dnxhd_get_cid_table() return value
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 13 Oct 2012 20:40:14 +0000
(22:40 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 13 Oct 2012 20:40:14 +0000
(22:40 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dnxhdenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/dnxhdenc.c
b/libavcodec/dnxhdenc.c
index
b5d62bf
..
690e64f
100644
(file)
--- 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;