Hi,

On Thu, Dec 22, 2011 at 12:22 PM, Janne Grunau <[email protected]> wrote:
> ---
>  libavcodec/pthread.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
> index 7e03c64..ac15fef 100644
> --- a/libavcodec/pthread.c
> +++ b/libavcodec/pthread.c
> @@ -237,8 +237,10 @@ static int thread_init(AVCodecContext *avctx)
>     ThreadContext *c;
>     int thread_count = avctx->thread_count;
>
> -    if (thread_count <= 1)
> +    if (thread_count <= 1) {
> +        avctx->active_thread_type = 0;
>         return 0;
> +    }

OK.

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

Reply via email to