[FFmpeg-cvslog] lavc: Warn in case the set bitrate is very low
Lou Logan
lou at lrcd.com
Fri Dec 21 23:42:21 CET 2012
On Fri, 21 Dec 2012 22:58:56 +0100 (CET)
git at videolan.org (Michael Niedermayer) wrote:
> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 21 22:50:57 2012 +0100| [2f436b1fce992d55d70f48c5e5d835e6e2226991] | committer: Michael Niedermayer
>
> lavc: Warn in case the set bitrate is very low
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
>
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f436b1fce992d55d70f48c5e5d835e6e2226991
> ---
>
> libavcodec/utils.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index c8c7c47..8a9d7a8 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -1013,6 +1013,10 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
> goto free_and_end;
> }
> }
> + if ( (avctx->codec_type == AVMEDIA_TYPE_VIDEO || avctx->codec_type == AVMEDIA_TYPE_AUDIO)
> + && avctx->bit_rate>0 && avctx->bit_rate<1000) {
> + av_log(avctx, AV_LOG_WARNING, "Bitrate %d is extreemly low, did you mean %dk\n", avctx->bit_rate, avctx->bit_rate);
typo: extremely
More information about the ffmpeg-cvslog
mailing list