[FFmpeg-devel] [PATCH] cosmetic : img2 demuxer should print an error if url_fopen fails

Michael Niedermayer michaelni
Sat Jun 20 10:45:35 CEST 2009


On Sat, Jun 20, 2009 at 07:31:27AM +0000, Jai Menon wrote:
> Hi,
> 
> Currently, nonexistent files are reported like :
> 
> jai at outrax ~/ffbuild $ ./ffplay nosuchfile.png
> FFplay version git-610fbb4, Copyright (c) 2003-2009 Fabrice Bellard, et al.
>   configuration: --disable-optimizations --disable-mmx
> --disable-ffserver --disable-stripping
>   libavutil     50. 3. 0 / 50. 3. 0
>   libavcodec    52.32. 0 / 52.32. 0
>   libavformat   52.34. 0 / 52.34. 0
>   libavdevice   52. 2. 0 / 52. 2. 0
>   libswscale     0. 7. 1 /  0. 7. 1
>   built on Jun 19 2009 19:25:13, gcc: 4.3.2
> [image2 @ 0xa256c80]Could not find codec parameters (Video: png)
> nosuchfile.png: could not find codec parameters
> 
> 
> This is potentially confusing. Trivial patch attached.
> 
> -- 
> Regards,
> 
> Jai

>  img2.c |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> ed488bec717f410439c11bb110ce14b50e6e07a8  0001-be-more-verbose-when-files-can-t-be-opened.patch
> From 61b2856ad935434144fda80d056b9f0a766595d4 Mon Sep 17 00:00:00 2001
> From: Jai Menon <jai at retroficial.org>
> Date: Sat, 20 Jun 2009 12:55:15 +0000
> Subject: [PATCH 1/1] be more verbose when files can't be opened.

ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090620/3eedabe2/attachment.pgp>



More information about the ffmpeg-devel mailing list