Commit 1037e484 authored by Michael Niedermayer's avatar Michael Niedermayer

dnxhddata_ Fix mixup of sizeof() and array elements in ff_dnxhd_find_cid()

Fixes CID717910
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 670b927a
...@@ -1038,7 +1038,7 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth) ...@@ -1038,7 +1038,7 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth)
if (cid->width == avctx->width && cid->height == avctx->height && if (cid->width == avctx->width && cid->height == avctx->height &&
cid->interlaced == !!(avctx->flags & CODEC_FLAG_INTERLACED_DCT) && cid->interlaced == !!(avctx->flags & CODEC_FLAG_INTERLACED_DCT) &&
cid->bit_depth == bit_depth) { 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) if (cid->bit_rates[j] == mbs)
return cid->cid; return cid->cid;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment