On Sun, 4 Sep 2011 10:13:04 +0200, Kostya Shishkov <[email protected]> wrote: > On Sun, Sep 04, 2011 at 10:02:28AM +0200, Anton Khirnov wrote: > > It should be flags, not int. > > --- > > libavcodec/options.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/libavcodec/options.c b/libavcodec/options.c > > index 9684ed5..f910f2e 100644 > > --- a/libavcodec/options.c > > +++ b/libavcodec/options.c > > @@ -483,7 +483,7 @@ static const AVOption options[]={ > > {"lpc_passes", "deprecated, use flac-specific options", > > OFFSET(lpc_passes), FF_OPT_TYPE_INT, {.dbl = -1 }, INT_MIN, INT_MAX, A|E}, > > #endif > > {"slices", "number of slices, used in parallelized decoding", > > OFFSET(slices), FF_OPT_TYPE_INT, {.dbl = 0 }, 0, INT_MAX, V|E}, > > -{"thread_type", "select multithreading type", OFFSET(thread_type), > > FF_OPT_TYPE_INT, {.dbl = FF_THREAD_SLICE|FF_THREAD_FRAME }, 0, INT_MAX, > > V|E|D, "thread_type"}, > > +{"thread_type", "select multithreading type", OFFSET(thread_type), > > FF_OPT_TYPE_FLAGS, {.dbl = FF_THREAD_SLICE|FF_THREAD_FRAME }, 0, INT_MAX, > > V|E|D, "thread_type"}, > > probably OK (and it's still weird seeing initialiser being .dbl instead of, > say, .i64 but it's another discussion)
IIRC there were some issues with that. I was planning to get to this sometime. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
