diff options
-rw-r--r-- | libavcodec/dnxhddata.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c index fa6d13fa4a..c1f2671c9d 100644 --- a/libavcodec/dnxhddata.c +++ b/libavcodec/dnxhddata.c @@ -428,6 +428,8 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx) { int i, j; int mbs = avctx->bit_rate/1000000; + if (!mbs) + return 0; for (i = 0; i < sizeof(ff_dnxhd_cid_table)/sizeof(CIDEntry); i++) { const CIDEntry *cid = &ff_dnxhd_cid_table[i]; if (cid->width == avctx->width && cid->height == avctx->height && |