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

Michael Niedermayer michaelni
Wed Sep 29 22:42:52 CEST 2010


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

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

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100929/598330c6/attachment.pgp>



More information about the ffmpeg-devel mailing list