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

Michael Niedermayer michaelni at gmx.at
Fri Jan 2 15:29:00 CET 2015


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)
>         av_log(avctx, AV_LOG_WARNING, "-qscale is ignored, -crf is recommended.\n");
> 
> 
> #if HAVE_STUDY
>     //my study code.  
> #endif
> 
> 
>     x264_param_default(&x4->params);
> 
> 
>     x4->params.b_deblocking_filter         = avctx->flags & CODEC_FLAG_LOOP_FILTER;
>     ......
> }
> 
> 
> I want to add some of my code which control by HAVE_STUDY micro, I hope that it is close by default, and when I configure the ffmpeg with --enable-study option, the HAVE_STUDY is true, how can I reach this aim?
> can someone kindly help me? 

look at commits that added other --enable-* options


[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150102/faa55894/attachment.asc>


More information about the ffmpeg-devel mailing list