[vlc-commits] avcodec: hw accel with frame multithreading works since libavcodec 55.01.00

Janne Grunau git at videolan.org
Wed Mar 27 18:03:53 CET 2013


vlc | branch: master | Janne Grunau <janne-vlc at jannau.net> | Wed Mar 27 17:05:44 2013 +0100| [b72986e83bad854b2db4a0e7e1d4e54be5140179] | committer: Jean-Baptiste Kempf

avcodec: hw accel with frame multithreading works since libavcodec 55.01.00

This is mostly useful if the hw accelerator cannot handle the stream.
The software decoder fallback will then use frame multithreading if it
supports it.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b72986e83bad854b2db4a0e7e1d4e54be5140179
---

 modules/codec/avcodec/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index d8ce8a2..2b87f35 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -341,7 +341,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
          i_codec_id == AV_CODEC_ID_H264 ||
          i_codec_id == AV_CODEC_ID_VC1 || i_codec_id == AV_CODEC_ID_WMV3) )
     {
-#ifdef HAVE_AVCODEC_MT
+#if defined(HAVE_AVCODEC_MT) && LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 1, 0)
         if( p_sys->p_context->thread_type & FF_THREAD_FRAME )
         {
             msg_Warn( p_dec, "threaded frame decoding is not compatible with libavcodec-hw, disabled" );



More information about the vlc-commits mailing list