]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegvideo_enc.c
Merge commit '6aa4ba7131b6e8668e33430e18101a051fe492eb'
[ffmpeg] / libavcodec / mpegvideo_enc.c
index 882cf09c0ae83bb23635bb1beb3d91586b0e8aeb..db241c82f0982bc2ed4f8e7f3534505ffef041ee 100644 (file)
@@ -399,7 +399,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
         return AVERROR(EINVAL);
     }
 
-    if (s->huffman && avctx->codec_id == AV_CODEC_ID_AMV)
+    if (avctx->codec_id == AV_CODEC_ID_AMV || (avctx->active_thread_type & FF_THREAD_SLICE))
         s->huffman = 0;
 
     if (s->intra_dc_precision > (avctx->codec_id == AV_CODEC_ID_MPEG2VIDEO ? 3 : 0)) {