[FFmpeg-cvslog] r13611 - trunk/libavcodec/dnxhddata.c

bcoudurier subversion
Sun Jun 1 23:29:45 CEST 2008


Author: bcoudurier
Date: Sun Jun  1 23:29:45 2008
New Revision: 13611

Log:
return if bitrate is not specified or too low

Modified:
   trunk/libavcodec/dnxhddata.c

Modified: trunk/libavcodec/dnxhddata.c
==============================================================================
--- trunk/libavcodec/dnxhddata.c	(original)
+++ trunk/libavcodec/dnxhddata.c	Sun Jun  1 23:29:45 2008
@@ -428,6 +428,8 @@ int ff_dnxhd_find_cid(AVCodecContext *av
 {
     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 &&




More information about the ffmpeg-cvslog mailing list