[FFmpeg-cvslog] avcodec: make "bitrate tolerance too small for bitrate" error more verbose

Michael Niedermayer git at videolan.org
Fri Jan 17 05:22:37 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan 17 03:10:42 2014 +0100| [3ca7085ae2f7734746174762e76a9b2b1c6e8626] | committer: Michael Niedermayer

avcodec: make "bitrate tolerance too small for bitrate" error more verbose

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ca7085ae2f7734746174762e76a9b2b1c6e8626
---

 libavcodec/mpegvideo_enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index c1fe13a..9dd2870 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -407,7 +407,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
         avctx->bit_rate * av_q2d(avctx->time_base) >
             avctx->bit_rate_tolerance) {
         av_log(avctx, AV_LOG_ERROR,
-               "bitrate tolerance too small for bitrate\n");
+               "bitrate tolerance %d too small for bitrate %d\n", avctx->bit_rate_tolerance, avctx->bit_rate);
         return -1;
     }
 



More information about the ffmpeg-cvslog mailing list