On Thu, 16 Aug 2012 19:51:39 +0200, Diego Biurrun <[email protected]> wrote:
> On Wed, Aug 15, 2012 at 10:37:20AM +0200, Anton Khirnov wrote:
> > ---
> >  avconv_opt.c |  147 
> > +++++++++++++++++++++++++++++++++-------------------------
> >  1 file changed, 83 insertions(+), 64 deletions(-)
> > 
> > --- a/avconv_opt.c
> > +++ b/avconv_opt.c
> > @@ -148,28 +148,33 @@ static double parse_frame_aspect_ratio(const char 
> > *arg)
> >  
> > -static int opt_audio_codec(OptionsContext *o, const char *opt, const char 
> > *arg)
> > +static int opt_audio_codec(void *optctx, const char *opt, const char *arg)
> >  {
> > +    OptionsContext *o = optctx;
> >      return parse_option(o, "codec:a", arg, options);
> >  }
> 
> What about changing the function pointer signature instead?
> 

I cannot do that. OptionsContext is avconv-specific.
It is called from the code that is shared between all avtools.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to