[FFmpeg-devel] [PATCH] threads: allow thread count of zero

Ronald S. Bultje rsbultje
Wed Mar 2 15:01:42 CET 2011


On Wed, Mar 2, 2011 at 8:16 AM, Mans Rullgard <mans at mansr.com> wrote:
> This moves setting the thread count to a minimum of 1 to
> frame_thread_init(), allowing a value of zero to propagate
> through to the codec if frame threading is not used. ?This
> makes auto-threads work in libx264.
> Signed-off-by: Mans Rullgard <mans at mansr.com>
> ---
> ?libavcodec/pthread.c | ? ?7 +++++--
> ?1 files changed, 5 insertions(+), 2 deletions(-)

Should be OK. I still think slice-threading and "this lib does
threading internally" should be CODEC_CAP_* flags in addition to this.


More information about the ffmpeg-devel mailing list