[vlc-devel] [vlc-commits] Win32: DxVA work-around to solve perf issue

Steve Lhomme robux4 at gmail.com
Sat Apr 11 11:16:32 CEST 2015


This is what I get with the latest nightly after resetting preferences.

avcodec debug: allowing 4 thread(s) for decoding
avcodec debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started
avcodec debug: using frame thread mode with 4 threads

So it works :)


On Fri, Apr 10, 2015 at 9:57 PM, Jean-Baptiste Kempf <git at videolan.org> wrote:
> vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 10 20:56:00 2015 +0200| [a060374a5f3b4184c94c1b591f693faf4e6912b7] | committer: Jean-Baptiste Kempf
>
> Win32: DxVA work-around to solve perf issue
>
> This is a HACK to work-around #14054
> This is NOT a fix, but well.
>
> It will default the Windows to "no" acceleration, until it is fixed.
>
>> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a060374a5f3b4184c94c1b591f693faf4e6912b7
> ---
>
>  modules/codec/avcodec/avcodec.c |    8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
> index 07902af..bea5374 100644
> --- a/modules/codec/avcodec/avcodec.c
> +++ b/modules/codec/avcodec/avcodec.c
> @@ -136,7 +136,13 @@ vlc_module_begin ()
>      add_obsolete_string( "ffmpeg-codec" ) /* removed since 2.1.0 */
>      add_string( "avcodec-codec", NULL, CODEC_TEXT, CODEC_LONGTEXT, true )
>      add_obsolete_bool( "ffmpeg-hw" ) /* removed since 2.1.0 */
> -    add_module( "avcodec-hw", "hw decoder", "any", HW_TEXT, HW_LONGTEXT, false )
> +    add_module( "avcodec-hw", "hw decoder",
> +#ifdef _WIN32
> +            "none"
> +#else
> +            "any"
> +#endif
> +            , HW_TEXT, HW_LONGTEXT, false )
>  #if defined(FF_THREAD_FRAME)
>      add_obsolete_integer( "ffmpeg-threads" ) /* removed since 2.1.0 */
>      add_integer( "avcodec-threads", 0, THREADS_TEXT, THREADS_LONGTEXT, true );
>
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits



More information about the vlc-devel mailing list