[FFmpeg-devel] [PATCH] lavf/utils: suggest what to do in case of missing codec information

Stefano Sabatini stefasab at gmail.com
Wed Jul 18 18:17:30 CEST 2012


On date Monday 2012-07-16 16:53:34 +0200, Michael Niedermayer encoded:
> On Mon, Jul 16, 2012 at 12:31:08AM +0200, Stefano Sabatini wrote:
> > In particular, fix trac issue #218.
> > ---
> >  libavformat/utils.c |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> > 
> > diff --git a/libavformat/utils.c b/libavformat/utils.c
> > index 74b6746..a7ecb89 100644
> > --- a/libavformat/utils.c
> > +++ b/libavformat/utils.c
> > @@ -2721,7 +2721,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
> >                  char buf[256];
> >                  avcodec_string(buf, sizeof(buf), st->codec, 0);
> >                  av_log(ic, AV_LOG_WARNING,
> > -                       "Could not find codec parameters for stream '%s': %s\n"
> > +                       "Could not find codec parameters for stream '%s': %s.\n"
> > +                       "Consider increasing the value for the 'analyzeduration' and 'probesize' options\n",
> 
> 
> LGTM

Applied.
 
> btw, we possibly should have defaults that are dependant on the
> used protocol (file vs rtsp/mms/...)
-- 
FFmpeg = Frightening & Frightening Majestic Portentous Elitist Gadget


More information about the ffmpeg-devel mailing list