Revision 3dd2a1c5

View differences:

libavcodec/mpegvideo_enc.c
342 342
        return -1;
343 343
    }
344 344

  
345
    if(avctx->rc_max_rate && avctx->rc_max_rate == avctx->bit_rate && avctx->rc_max_rate != avctx->rc_min_rate){
346
        av_log(avctx, AV_LOG_INFO, "impossible bitrate constraints, this will fail\n");
347
    }
348

  
345 349
    if(avctx->rc_buffer_size && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->rc_buffer_size){
346 350
        av_log(avctx, AV_LOG_ERROR, "VBV buffer too small for bitrate\n");
347 351
        return -1;

Also available in: Unified diff