[FFmpeg-devel] [RFC] RGB32 pixfmts cleanup

Stefano Sabatini stefano.sabatini-lala
Thu Mar 19 23:30:04 CET 2009


On date Thursday 2009-03-19 01:25:19 +0100, Michael Niedermayer encoded:
> On Thu, Mar 19, 2009 at 01:12:46AM +0100, Stefano Sabatini wrote:
[...]
> > Index: ffmpeg.c
> > ===================================================================
> > --- ffmpeg.c	(revision 18038)
> > +++ ffmpeg.c	(working copy)
> > @@ -2536,9 +2536,13 @@
> >  
> >  static void opt_frame_pix_fmt(const char *arg)
> >  {
> > -    if (strcmp(arg, "list"))
> > +    if (strcmp(arg, "list")) {
> >          frame_pix_fmt = avcodec_get_pix_fmt(arg);
> > +        if (frame_pix_fmt == PIX_FMT_NONE) {
> > +            fprintf(stderr, "Unknown pixel format requested: %s\n", arg);
> > +            av_exit(1);
> > +        }
> > -    else {
> > +    } else {
> >          list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);
> >          av_exit(0);
> >      }
> 
> ok

Applied.
-- 
FFmpeg = Foolish and Fostering Mind-dumbing Pitiful Extravagant Genius




More information about the ffmpeg-devel mailing list