[FFmpeg-devel] MAX_THREADS for ffmpeg-mt mp4

Frank Barchard fbarchard
Wed Sep 23 22:43:17 CEST 2009


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

On Wed, Sep 23, 2009 at 12:53 PM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Wed, Sep 23, 2009 at 12:41:05PM -0700, Frank Barchard wrote:
>> This change benefits ffmpeg-mt for mp4.
>> With the old value, you were limited to 8 threads, and a crash would
>> occur if you set more than 10.
>
> If it can crash currently, there should be also some code that limits
> the number of threads to MAX_THREADS or at least fails if the number of
> threads is too high.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max.diff
Type: application/octet-stream
Size: 618 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090923/854083a5/attachment.obj>



More information about the ffmpeg-devel mailing list