[FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

James Almer jamrial at gmail.com
Tue Oct 19 17:38:46 EEST 2021


On 10/19/2021 2:07 AM, Soft Works wrote:
> 
> 
>> -----Original Message-----
>> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
>> Gyan Doshi
>> Sent: Tuesday, October 19, 2021 6:51 AM
>> To: ffmpeg-devel at ffmpeg.org
>> Subject: Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit
>> application when decoding returns AVERROR_EXIT
>>
>>
>>
>> On 2021-10-19 10:11 am, Soft Works wrote:
>>
>>> Maybe there's a better way than my patch, but what happens is
>>> a bug IMO, and I wouldn't say that it would be a fix to say that
>>> a certain option needs to be set by the user to "fix it".
>>
>> What's ideally required is for user to designate essential and
>> non-essential parts of the task. Then some errors can be ignored, and
>> some are fatal.
> 
> Yes, and we know when this will happen - haha.
> 
> I guess I'll keep my fix and ffmpeg keeps the bug.

You could also just call ffmpeg with the -xerror option in this scenario 
where cuda is failing. It should abort the process at the exact same 
point your patch tries to.

> 
> softworkz
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> 



More information about the ffmpeg-devel mailing list