[FFmpeg-devel] MAX_THREADS for ffmpeg-mt mp4

Baptiste Coudurier baptiste.coudurier
Fri Sep 25 00:00:31 CEST 2009


On 09/24/2009 01:04 PM, Frank Barchard wrote:
> On Thu, Sep 24, 2009 at 3:48 AM, Michael Niedermayer<michaelni at gmx.at>  wrote:
>>
>> On Wed, Sep 23, 2009 at 01:43:17PM -0700, Frank Barchard wrote:
>>> Attached as a separate patch for just libavcodec/h264.c
>>>
>>> The other formats that use MAX_THREADS already had a check, so I
>>> copied this from dnxhdenc.c
>>> This prevents the crash, but is a fatal error:
>>> [h264 @ 0x2873030]too many threads
>>> [h264 @ 0x2873030]decode_slice_header error
>>
>> not the right place, it should be in decode_init() or something called
>> by it
>
> Michael,
> Its not ideal, but thats where dnxhd.c does it.

There is no dnxhd.c, it's dnxhdenc.c, it's an encoder and it does it in 
dnxhd_encode_init.

What's the problem with putting it in decode_init ?

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list