[FFmpeg-devel] [PATCH] Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().

Stefano Sabatini stefano.sabatini-lala
Wed Sep 29 23:43:00 CEST 2010


On date Wednesday 2010-09-29 22:42:52 +0200, Michael Niedermayer encoded:
> On Wed, Sep 29, 2010 at 08:36:45PM +0200, Stefano Sabatini wrote:
> > ---
> >  libavutil/opt.c |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> > 
> > diff --git a/libavutil/opt.c b/libavutil/opt.c
> > index df0aa42..979bb3d 100644
> > --- a/libavutil/opt.c
> > +++ b/libavutil/opt.c
> > @@ -426,7 +426,8 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
> >                      av_log(s, AV_LOG_DEBUG, "loss of precision in default of %s\n", opt->name);
> >                  av_set_int(s, opt->name, opt->default_val);
> >              break;
> > -            case FF_OPT_TYPE_FLOAT: {
> > +            case FF_OPT_TYPE_FLOAT:
> > +            case FF_OPT_TYPE_DOUBLE: {
> 
> you can do this without changing the existing line
> otherwise ok

Applied.
-- 
FFmpeg = Fascinating and Fundamental Multipurpose Plastic Epic Gadget



More information about the ffmpeg-devel mailing list