[FFmpeg-devel] [PATCH]Fix possible crash with -threads 0

Jason Garrett-Glaser jason
Thu Nov 25 23:52:41 CET 2010


On Thu, Nov 25, 2010 at 8:34 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Nov 23, 2010 at 10:55:18PM +0100, Carl Eugen Hoyos wrote:
>> Hi!
>>
>> Attached patch seems to fix a crash for some users (see issue 2376) - untested
>> on Windows.
>>
>> Please comment, Carl Eugen
>
> threads=0 means autodetect the number of threads/cpus.
> I think this should be implemented, shouldnt be that hard. Such implementation
> will fix this bug as a sideeffect

Autodetection should be left up to external libs when relevant though
(e.g. x264), as the optimal number of threads to use depends on the
threading model used.

Jason



More information about the ffmpeg-devel mailing list