Commit 59d9a28d authored by michael's avatar michael

use AV_LOG_ERROR instead of INFO for errors


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9078 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d1fca03d
...@@ -1020,7 +1020,7 @@ int MPV_encode_init(AVCodecContext *avctx) ...@@ -1020,7 +1020,7 @@ int MPV_encode_init(AVCodecContext *avctx)
} }
if(avctx->rc_min_rate && avctx->rc_min_rate > avctx->bit_rate){ if(avctx->rc_min_rate && avctx->rc_min_rate > avctx->bit_rate){
av_log(avctx, AV_LOG_INFO, "bitrate below min bitrate\n"); av_log(avctx, AV_LOG_ERROR, "bitrate below min bitrate\n");
return -1; return -1;
} }
...@@ -1030,12 +1030,12 @@ int MPV_encode_init(AVCodecContext *avctx) ...@@ -1030,12 +1030,12 @@ int MPV_encode_init(AVCodecContext *avctx)
} }
if(avctx->rc_buffer_size && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->rc_buffer_size){ if(avctx->rc_buffer_size && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->rc_buffer_size){
av_log(avctx, AV_LOG_INFO, "VBV buffer too small for bitrate\n"); av_log(avctx, AV_LOG_ERROR, "VBV buffer too small for bitrate\n");
return -1; return -1;
} }
if(avctx->bit_rate*av_q2d(avctx->time_base) > avctx->bit_rate_tolerance){ if(avctx->bit_rate*av_q2d(avctx->time_base) > avctx->bit_rate_tolerance){
av_log(avctx, AV_LOG_INFO, "bitrate tolerance too small for bitrate\n"); av_log(avctx, AV_LOG_ERROR, "bitrate tolerance too small for bitrate\n");
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment