[FFmpeg-devel] [PATCH] Make ffplay define in the encoder the number of threads *before* to open it

Michael Niedermayer michaelni
Sat Mar 8 21:03:17 CET 2008


On Sat, Mar 08, 2008 at 06:33:27PM +0100, Stefano Sabatini wrote:
[...
> Index: ffplay.c
> ===================================================================
> --- ffplay.c	(revision 12367)
> +++ ffplay.c	(working copy)
> @@ -1713,6 +1713,7 @@
>      enc->skip_loop_filter= skip_loop_filter;
>      enc->error_resilience= error_resilience;
>      enc->error_concealment= error_concealment;
> +    enc->thread_count= thread_count;
>      if (!codec ||
>          avcodec_open(enc, codec) < 0)
>          return -1;
> @@ -1735,7 +1736,6 @@
>  
>      if(thread_count>1)
>          avcodec_thread_init(enc, thread_count);
> -    enc->thread_count= thread_count;

wherver this line is moved the avcodec_thread_init should move as well
Though maybe the "enc->thread_count= thread_count;" line can be removed

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- 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/20080308/533e8441/attachment.pgp>



More information about the ffmpeg-devel mailing list