return if bitrate is not specified or too low
Originally committed as revision 13611 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
778346e3da
commit
892d226857
@ -428,6 +428,8 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
int mbs = avctx->bit_rate/1000000;
|
int mbs = avctx->bit_rate/1000000;
|
||||||
|
if (!mbs)
|
||||||
|
return 0;
|
||||||
for (i = 0; i < sizeof(ff_dnxhd_cid_table)/sizeof(CIDEntry); i++) {
|
for (i = 0; i < sizeof(ff_dnxhd_cid_table)/sizeof(CIDEntry); i++) {
|
||||||
const CIDEntry *cid = &ff_dnxhd_cid_table[i];
|
const CIDEntry *cid = &ff_dnxhd_cid_table[i];
|
||||||
if (cid->width == avctx->width && cid->height == avctx->height &&
|
if (cid->width == avctx->width && cid->height == avctx->height &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user