[vlc-commits] avcodec: enable 'avcodec-hw' by default on OS X
Felix Paul Kühne
git at videolan.org
Tue Aug 14 14:21:30 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Aug 14 14:20:37 2012 +0200| [219549e6806d09b560f72c1ee38b0ee5064af56b] | committer: Felix Paul Kühne
avcodec: enable 'avcodec-hw' by default on OS X
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=219549e6806d09b560f72c1ee38b0ee5064af56b
---
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 d23a46b..dfc06e7 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -148,7 +148,13 @@ vlc_module_begin ()
add_string( "avcodec-codec", NULL, CODEC_TEXT, CODEC_LONGTEXT, true )
#if defined(HAVE_AVCODEC_VAAPI) || defined(HAVE_AVCODEC_DXVA2) || defined(HAVE_AVCODEC_VDA)
add_obsolete_bool( "ffmpeg-hw" ) /* removed since 2.1.0 */
- add_bool( "avcodec-hw", false, HW_TEXT, HW_LONGTEXT, false )
+ add_bool( "avcodec-hw",
+#if !defined(HAVE_AVCODEC_VDA)
+ false
+#else
+ true
+#endif
+ , HW_TEXT, HW_LONGTEXT, false )
#if defined(HAVE_AVCODEC_VDA)
add_integer ( "avcodec-vda-pix-fmt", 0, VDA_PIX_FMT_TEXT,
VDA_PIX_FMT_LONGTEXT, false)
More information about the vlc-commits
mailing list