[FFmpeg-devel] [PATCH] Make ffmpeg warns the user when the selected sample format is ignored.
Stefano Sabatini
stefano.sabatini-lala
Mon Jan 31 01:00:47 CET 2011
On date Sunday 2011-01-30 23:25:49 +0000, M?ns Rullg?rd encoded:
> Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
>
> > ffmpeg.c | 8 +++++++-
> > 1 files changed, 7 insertions(+), 1 deletions(-)
> >
> > diff --git a/ffmpeg.c b/ffmpeg.c
> > index 691b73e..3ea9df1 100644
> > --- a/ffmpeg.c
> > +++ b/ffmpeg.c
> > @@ -600,8 +600,14 @@ static void choose_sample_fmt(AVStream *st, AVCodec *codec)
> > if(*p == st->codec->sample_fmt)
> > break;
> > }
> > - if(*p == -1)
> > + if (*p == -1) {
> > + av_log(NULL, AV_LOG_WARNING,
> > + "Incompatible sample format '%s' for stream format '%s', auto-selecting format '%s'\n",
>
> I think something in that line should say "codec"...
That's an option. Updated.
--
FFmpeg = Fast and Freak MultiPurpose Elegant Game
More information about the ffmpeg-devel
mailing list