[FFmpeg-devel] [PATCH] fftools/ffmpeg: use an int for nb_threads

James Almer jamrial at gmail.com
Sat Feb 15 17:26:43 EET 2025


On 2/15/2025 12:42 AM, James Almer wrote:
> On 2/14/2025 10:28 PM, Andreas Rheinhardt wrote:
>>
>> What about "auto"? I thought that was a thing. Or do I misremember?
> 
> Ah, you're right that's an alias for 0.
> I guess i could use av_opt_eval_int(), but maybe it's not worth the hassle.

Actually, it's fine as is. The value for "threads" was parsed before 
this code. In here, we're using the value as stored in enc_ctx by 
av_opt_set_dict2() in ost_add(), so "auto" was already interpreted as 0.

I'll push this soon unless there are objections.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250215/535dffc0/attachment.sig>


More information about the ffmpeg-devel mailing list