diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-01 21:29:45 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-01 21:29:45 +0000 |
commit | 892d226857f9276d94f7734b0cd9af9ac3385086 (patch) | |
tree | db60d670e1c42ef6ff77ced94f88c83ec148fc23 /libavcodec/dnxhddata.c | |
parent | 778346e3da0928b7b2aafabd1a13f4b0d9edffdb (diff) | |
download | ffmpeg-892d226857f9276d94f7734b0cd9af9ac3385086.tar.gz |
return if bitrate is not specified or too low
Originally committed as revision 13611 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhddata.c')
-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 && |