]> git.pld-linux.org Git - packages/vlc.git/commitdiff
updated ffmpeg3 patch
authorJan Palus <atler@pld-linux.org>
Sun, 9 Jul 2017 22:29:30 +0000 (00:29 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 9 Jul 2017 22:29:30 +0000 (00:29 +0200)
fixes hwaccel in default setup without enforcing avcodec-threads=1

ffmpeg3.patch

index c0d06a90051c683d6b11807d160e5dde961537c0..2ca88b7b9a0e9df618e7ac43f4eab7eb2ebdfe1a 100644 (file)
@@ -190,11 +190,12 @@ diff -ruNp vlc-2.2.3.orig/modules/codec/avcodec/video.c vlc-2.2.3/modules/codec/
  {
      decoder_t *p_dec = p_context->opaque;
      decoder_sys_t *p_sys = p_dec->p_sys;
-@@ -1341,6 +1341,15 @@ static enum PixelFormat ffmpeg_GetFormat
+@@ -1341,6 +1341,16 @@ static enum PixelFormat ffmpeg_GetFormat
      if (!can_hwaccel)
          goto end;
  
-+#if (LIBAVCODEC_VERSION_MICRO >= 100) /* FFmpeg only */
++#if (LIBAVCODEC_VERSION_MICRO >= 100) \
++  && (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57, 83, 101))
 +    if (p_context->active_thread_type)
 +    {
 +        msg_Warn(p_dec, "thread type %d: disabling hardware acceleration",
This page took 0.032395 seconds and 4 git commands to generate.