Re: [FFmpeg-devel] how to add configuration option to ffmepg

2015-01-02 Thread Michael Niedermayer
On Fri, Jan 02, 2015 at 09:44:10PM +0800, llj wrote: > Hi, dear ffmpeg developer, > below is a peace of code in libx264.c. > > > static av_cold int X264_init(AVCodecContext *avctx) > { > X264Context *x4 = avctx->priv_data; > int sw,sh; > > > if (avctx->global_quality > 0) >

[FFmpeg-devel] how to add configuration option to ffmepg

2015-01-02 Thread llj
Hi, dear ffmpeg developer, below is a peace of code in libx264.c. static av_cold int X264_init(AVCodecContext *avctx) { X264Context *x4 = avctx->priv_data; int sw,sh; if (avctx->global_quality > 0) av_log(avctx, AV_LOG_WARNING, "-qscale is ignored, -crf is recommended.\n");