aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhddata.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 22:36:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-25 21:19:56 +0200
commit400b23beab0ab049152e276996a2a405b5542a02 (patch)
tree1fdc1a909c9cee80f0f510b9813a66516e799aad /libavcodec/dnxhddata.c
parentcff9f07d391f4880ce923f86163d41251124641e (diff)
downloadffmpeg-400b23beab0ab049152e276996a2a405b5542a02.tar.gz
dnxhddata_ Fix mixup of sizeof() and array elements in ff_dnxhd_find_cid()
Fixes CID717910 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 1037e484f0f1c45ab0a398c78985d3b91daa410c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dnxhddata.c')
-rw-r--r--libavcodec/dnxhddata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
index 948a4c6730..da6260e909 100644
--- a/libavcodec/dnxhddata.c
+++ b/libavcodec/dnxhddata.c
@@ -1038,7 +1038,7 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth)
if (cid->width == avctx->width && cid->height == avctx->height &&
cid->interlaced == !!(avctx->flags & CODEC_FLAG_INTERLACED_DCT) &&
cid->bit_depth == bit_depth) {
- for (j = 0; j < sizeof(cid->bit_rates); j++) {
+ for (j = 0; j < FF_ARRAY_ELEMS(cid->bit_rates); j++) {
if (cid->bit_rates[j] == mbs)
return cid->cid;
}