Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 33028:038ff73f9894
Enable both frame and slice threading.
author | reimar |
---|---|
date | Sat, 26 Mar 2011 13:00:11 +0000 |
parents | 55de45e1d943 |
children | dba2e7218893 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sat Mar 26 12:43:19 2011 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Mar 26 13:00:11 2011 +0000 @@ -439,6 +439,7 @@ avctx->bits_per_coded_sample= sh->bih->biBitCount; avctx->thread_count = lavc_param_threads; + avctx->thread_type = FF_THREAD_FRAME | FF_THREAD_SLICE; /* open it */ if (avcodec_open(avctx, lavc_codec) < 0) { mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_CantOpenCodec);