Commit 3430e059 authored by bcoudurier's avatar bcoudurier

return if bitrate is not specified or too low

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13611 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 721de905
......@@ -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 &&
......
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