[FFmpeg-devel] [RFC] Advanced Error Codes

Nicolas George george at nsup.org
Wed Jul 2 17:52:58 EEST 2025


Michael Niedermayer (HE12025-07-02):
> People are asking for better error codes

I have little time just now, but I think it is important to clarify:

- Error CODES are for when the program must react specifically to a
  certain kind of error condition:

  if (ret == AVERROR(EAGAIN)) …

- Error MESSAGES are to say to the user what went wrong.

There is a confusion because error codes also serve as stock error
messages.

I think what we need is better error messages and accompanying
reporting. I have a lot of thoughts about this, I will comment when I
have more time. (Spoiler: it depends on AVWriter.)

I do not think we need better error codes.

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list