Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
33026:03599ed42ec7 | 33027:55de45e1d943 |
---|---|
436 } | 436 } |
437 | 437 |
438 if(sh->bih) | 438 if(sh->bih) |
439 avctx->bits_per_coded_sample= sh->bih->biBitCount; | 439 avctx->bits_per_coded_sample= sh->bih->biBitCount; |
440 | 440 |
441 if(lavc_param_threads > 1) | 441 avctx->thread_count = lavc_param_threads; |
442 avcodec_thread_init(avctx, lavc_param_threads); | |
443 /* open it */ | 442 /* open it */ |
444 if (avcodec_open(avctx, lavc_codec) < 0) { | 443 if (avcodec_open(avctx, lavc_codec) < 0) { |
445 mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_CantOpenCodec); | 444 mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_CantOpenCodec); |
446 uninit(sh); | 445 uninit(sh); |
447 return 0; | 446 return 0; |