[FFmpeg-devel] [PATCH] Drop AVERROR_ENOMEM and AVERROR_EIO
Michael Niedermayer
michaelni
Sat Mar 13 16:15:42 CET 2010
On Sat, Mar 13, 2010 at 03:18:52PM +0100, Stefano Sabatini wrote:
> Hi,
>
> from the recent discussion on error codes it appears we agree that we
> should remove AVERROR_XXX codes when we can use a corresponding POSIX
> error code and AVERROR(XXX).
>
> Regards.
> --
> FFmpeg = Freak & Fast Mega Peaceless Entertaining Gospel
> libavdevice/alsa-audio-common.c | 6 +++---
> libavdevice/vfwcap.c | 6 +++---
> libavformat/ape.c | 4 ++--
> libavformat/cafdec.c | 8 ++++----
> libavformat/flacdec.c | 2 +-
> libavformat/soxdec.c | 2 +-
> libavutil/error.h | 2 +-
> 7 files changed, 15 insertions(+), 15 deletions(-)
> e8cd8df0341f6a0b4511c9b96cfaa47f9980aba7 0004-Replace-all-the-occurrences-of-AVERROR_EIO-with-AVER.patch
> >From 3f0644b56c7fcad8814d71995ff3006b7024dd9a Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Thu, 11 Mar 2010 00:37:39 +0100
> Subject: [PATCH 4/7] Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
> for deletion AVERROR_EIO at the next major bump.
ok
[...]
> error.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 7ffdbddb697863bbe0fda2e9a6422ab33f2dac41 0005-Mark-AVERROR_ENOMEM-to-be-deleted-at-the-next-major-.patch
> >From fd5bfae400e9c31fbc50861893f03d780fdd4606 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Thu, 11 Mar 2010 00:43:50 +0100
> Subject: [PATCH 5/7] Mark AVERROR_ENOMEM to be deleted at the next major bump.
>
> AVERROR(ENOMEM) must be used instead, and there are no occurrences of
> AVERROR_ENOMEM it in the FFmpeg basecode so it can be safely removed.
ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Old school: Use the lowest level language in which you can solve the problem
conveniently.
New school: Use the highest level language in which the latest supercomputer
can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100313/7a9ef4d4/attachment.pgp>
More information about the ffmpeg-devel
mailing list