[vlc-devel] [vlc-commits] commit: Added support for ffmpeg-mt. (Laurent Aimar )

xxcv xxcv07 at gmail.com
Thu May 13 09:11:03 CEST 2010


> +        i_thread_count = vlc_GetCPUCount();
> +#ifdef HAVE_AVCODEC_VA
> +    if( b_use_hw )
> +    {
> +        if( i_thread_count>  1 )
> +            msg_Err( p_dec, "ffmpeg-hw and ffmpeg-threads options are not compatible" );
Is it possible to always let avcodec fall back to 1 thread count 
automatically when hardware acceleration is in use ?
libavcodec will crash attempt to use hardware acceleration with multiple 
thread counts.
This is a workaround to cover up a libavcodec bug right ?
> +        i_thread_count = 1;
> +    }
> +#endif
> +    msg_Dbg( p_dec, "allowing %d thread(s) for decoding", i_thread_count );
> +    p_sys->p_context->thread_count = i_thread_count;
Is it possible to change the thread count after completion of function 
InitVideoDec ?



More information about the vlc-devel mailing list