From: Marton Balint <cus@passwd.hu>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] avutil/error: Provide better feedback about unknown error codes
Date: Tue, 16 Jul 2024 01:01:20 +0200 (CEST)
Message-ID: <9e16396a-4ef2-fdb3-fce8-94e19a141473@passwd.hu> (raw)
In-Reply-To: <ZpVKp80z0UA0phtP@andrews-2024-laptop.sayers>
On Mon, 15 Jul 2024, Andrew Sayers wrote:
> On Mon, Jul 15, 2024 at 05:45:24PM +0200, Marton Balint wrote:
>>
>>
>> On Mon, 15 Jul 2024, Andrew Sayers wrote:
>>
>>> AVERROR messages should always be less than zero,
>>> and are usually based on three or four ASCII characters.
>>>
>>> For error codes that aren't explicitly handled by error.c (e.g. FFERROR_REDO),
>>> print the ASCII code so the user has a little more information.
>>
>> All ffmpeg internal error codes (including the ones having some special tag
>> representation) should be handled by error.c. The user should never receive
>> FFERROR_REDO, that is an internal error code, it should never reach the
>> user. Therefore I see no benefit in disclosing the error bytes, because that
>> is not the proper fix.
>>
>> Regards,
>> Marton
>
> So it sounds like this patch is addressing two separate issues:
>
> 1. any messages caught by the test in the patch represent a bug in FFmpeg
> * how about I modify this patch to ask the user to report the bug?
> * would the ASCII error code help with triage?
I don't really like adding extra code for this, and from an API point of
view any negative error code can be valid, so you can't really warn about
them.
If you want to make sure that every ffmpeg error code has a text, then add
a fate test for checking it.
> 2. FFERROR_REDO should be added to error.c
> * let me know if I should submit a separate patch for this
FFERROR_REDO is an avformat internal error code, av_strerror() being in
avutil cannot properly support it.
Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-07-15 23:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 15:13 Andrew Sayers
2024-07-15 15:45 ` Marton Balint
2024-07-15 16:13 ` Andrew Sayers
2024-07-15 23:01 ` Marton Balint [this message]
2024-07-16 11:13 ` [FFmpeg-devel] [RFC PATCH v2 0/1] " Andrew Sayers
2024-07-16 11:13 ` [FFmpeg-devel] [RFC PATCH v2] " Andrew Sayers
2024-07-17 21:06 ` Michael Niedermayer
2024-07-18 9:26 ` [FFmpeg-devel] [RFC PATCH v2 0/1] " Marton Balint
2024-07-18 10:46 ` [FFmpeg-devel] [PATCH v3 0/3] Protect against undocumented " Andrew Sayers
2024-07-18 10:46 ` [FFmpeg-devel] [PATCH v3 1/3] avutil/utils: Allow "!" in FourCCs Andrew Sayers
2024-07-18 15:42 ` Paul B Mahol
2024-07-18 10:46 ` [FFmpeg-devel] [PATCH v3 2/3] avutil/error: Provide better feedback about unknown error codes Andrew Sayers
2024-07-18 10:46 ` [FFmpeg-devel] [PATCH v3 3/3] tests/fate/source-check: Check for AVERROR codes without error strings Andrew Sayers
2024-07-18 11:16 ` [FFmpeg-devel] [RFC PATCH v2 0/1] avutil/error: Provide better feedback about unknown error codes Zhao Zhili
2024-07-17 6:25 ` [FFmpeg-devel] [PATCH] " Anton Khirnov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e16396a-4ef2-fdb3-fce8-94e19a141473@passwd.hu \
--to=cus@passwd.hu \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git