[FFmpeg-devel] [PATCH] conditionally compile libavformat/framehook.c

Aurelien Jacobs aurel
Thu Jul 19 00:03:30 CEST 2007


On Wed, 18 Jul 2007 23:30:41 +0200
Diego Biurrun <diego at biurrun.de> wrote:

> Attached patch makes the compilation of libavformat/framehook.c
> conditional to CONFIG_VHOOK.  OK to apply?
> 
> [...]
> 
> Index: ffmpeg.c
> ===================================================================
> --- ffmpeg.c	(revision 9734)
> +++ ffmpeg.c	(working copy)
> @@ -607,8 +607,10 @@
>          picture2 = picture;
>      }
>  
> +#ifdef CONFIG_VHOOK
>      frame_hook_process(picture2, dec->pix_fmt, dec->width, dec->height,
>                         1000000 * ist->pts / AV_TIME_BASE);
> +#endif

Here you could use if(ENABLE_VHOOK) instead of #ifdef.
Except that point, the patch looks fine to me.

Aurel




More information about the ffmpeg-devel mailing list