As FFmpeg asserts, hardware accelerated decoding with frame threading
is known to be unstable.
To make hardware codecs stable, just decode in one thread.
avctx->skip_idct = AVDISCARD_DEFAULT;
avctx->skip_loop_filter = AVDISCARD_ALL;
avctx->error_concealment = 3;
- avctx->thread_count = 0;
if (fast) avctx->flags2 |= AV_CODEC_FLAG2_FAST;
#ifdef CODEC_FLAG_EMU_EDGE
}
ist->active_hwaccel_id = hwaccel->id;
ist->hwaccel_pix_fmt = *p;
+ s->thread_count = 1;
#ifdef LIBAV_CONFIG_H
ist->dec = s->codec;
ist->dec_ctx = avcodec_alloc_context3(ist->dec);