[FFmpeg-devel] [PATCH 5/6] Make avcodec_check_dimensions() return AVERROR(EINVAL) rather than -1 in case of invalid picture size.
Stefano Sabatini
stefano.sabatini-lala
Sun Apr 25 17:05:47 CEST 2010
On date Saturday 2010-04-24 23:56:20 +0200, Michael Niedermayer encoded:
> On Sat, Apr 24, 2010 at 08:53:24PM +0200, Stefano Sabatini wrote:
> > ---
> > libavcodec/utils.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> > index 34e8ae4..87facec 100644
> > --- a/libavcodec/utils.c
> > +++ b/libavcodec/utils.c
> > @@ -224,7 +224,7 @@ int avcodec_check_dimensions(void *av_log_ctx, unsigned int w, unsigned int h){
> > return 0;
> >
> > av_log(av_log_ctx, AV_LOG_ERROR, "picture size invalid (%ux%u)\n", w, h);
> > - return -1;
> > + return AVERROR(EINVAL);
>
> ok
Applied.
--
FFmpeg = Forgiving & Fostering Mega Portentous Enigmatic Generator
More information about the ffmpeg-devel
mailing list