[FFmpeg-devel] [PATCH] ffplay: improve error message in case of failure, mention filtergraph configuration

Marton Balint cus at passwd.hu
Sun Jul 21 00:25:08 CEST 2013



On Sat, 20 Jul 2013, Stefano Sabatini wrote:

> ---
> ffplay.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/ffplay.c b/ffplay.c
> index 9b5dce0..fbef907 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -2802,7 +2802,8 @@ static int read_thread(void *arg)
>     }
>
>     if (is->video_stream < 0 && is->audio_stream < 0) {
> -        av_log(NULL, AV_LOG_FATAL, "%s: could not open codecs\n", is->filename);
> +        av_log(NULL, AV_LOG_FATAL, "Failed to open file '%s' or configure filtergraph\n",
> +               is->filename);
>         ret = -1;
>         goto fail;
>     }

LGTM, thanks.

Marton


More information about the ffmpeg-devel mailing list