[FFmpeg-devel] [PATCH] Drop AVERROR_ENOMEM and AVERROR_EIO

Stefano Sabatini stefano.sabatini-lala
Sat Mar 13 20:21:39 CET 2010


On date Saturday 2010-03-13 16:15:42 +0100, Michael Niedermayer encoded:
> 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

Both applied.
-- 
FFmpeg = Friendly and Foolish Magic Philosophical Energized God



More information about the ffmpeg-devel mailing list