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

Michael Niedermayer michaelni at gmx.at
Mon Jul 16 16:53:34 CEST 2012


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

btw, we possibly should have defaults that are dependant on the
used protocol (file vs rtsp/mms/...)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120716/b1ced12c/attachment.asc>


More information about the ffmpeg-devel mailing list