[FFmpeg-devel] [PATCH] Always call avcodec_thread_init()

Michael Niedermayer michaelni
Wed Jan 20 23:48:06 CET 2010


On Wed, Jan 20, 2010 at 10:26:49PM +0000, Mans Rullgard wrote:
> The various avcodec_thread_init() functions are updated to return
> immediately after setting avctx->thread_count.  This allows -threads 0
> to pass through to codecs.  It also simplifies the usage for apps
> using libavcodec.
> ---
>  ffmpeg.c                |    3 ---
>  ffplay.c                |    1 -
>  libavcodec/beosthread.c |    3 +++
>  libavcodec/os2thread.c  |    3 +++
>  libavcodec/pthread.c    |    6 +++++-
>  libavcodec/w32thread.c  |    3 +++
>  6 files changed, 14 insertions(+), 5 deletions(-)

ok if regession tests pass

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100120/e5f682f8/attachment.pgp>



More information about the ffmpeg-devel mailing list