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)) {