Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 33027:55de45e1d943
Do not use deprecated avcodec_thread_init, it is broken and does nothing currently.
Set thread_count directly instead.
author | reimar |
---|---|
date | Sat, 26 Mar 2011 12:43:19 +0000 |
parents | fafbc46915db |
children | 038ff73f9894 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Fri Mar 25 13:58:26 2011 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Mar 26 12:43:19 2011 +0000 @@ -438,8 +438,7 @@ if(sh->bih) avctx->bits_per_coded_sample= sh->bih->biBitCount; - if(lavc_param_threads > 1) - avcodec_thread_init(avctx, lavc_param_threads); + avctx->thread_count = lavc_param_threads; /* open it */ if (avcodec_open(avctx, lavc_codec) < 0) { mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_CantOpenCodec);