Hi, On Sun, Jan 1, 2012 at 5:56 AM, Janne Grunau <[email protected]> wrote: > --- > libavcodec/utils.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/libavcodec/utils.c b/libavcodec/utils.c > index a88d1a7..c845a31 100644 > --- a/libavcodec/utils.c > +++ b/libavcodec/utils.c > @@ -710,6 +710,8 @@ int attribute_align_arg avcodec_open2(AVCodecContext > *avctx, AVCodec *codec, AVD > goto free_and_end; > } > } > + if (!HAVE_THREADS && !(codec->capabilities & CODEC_CAP_AUTO_THREADS)) > + avctx->thread_count = 1;
In ff_thread_init(), if neither CODEC_CAP_FRAME_THREAD as well as _SLICE_THREAD is present, shouldn't this code be repeated? Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
