{
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",