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

Diego Biurrun diego
Thu Jul 19 16:49:27 CEST 2007


On Thu, Jul 19, 2007 at 12:03:30AM +0200, Aurelien Jacobs wrote:
> 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?
> > 
> > --- 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.

Applied with that change.

Diego




More information about the ffmpeg-devel mailing list