[FFmpeg-devel] [PATCH] Make libavformat/url_open print an error message in case of unrecognized protocol string

Stefano Sabatini stefano.sabatini-lala
Thu Nov 29 10:07:55 CET 2007


Hi all,

as in $subject.

Example:
stefano at geppetto ~/s/ffmpeg> ./ffmpeg -i foo:bar.mpeg
[...]
Unrecognized protocol string: foo
foo:bar.mpeg: no such file or directory

I didn't found any better way than to call av_log with a NULL class,
since URLContext hasn't a corresponding avclass.

Relevant thread:
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/57140/focus=58082

By the way, we should somehow fix the avcodec.h AVERROR_ mess.

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print-unrecognized-protocol-message-00.patch
Type: text/x-diff
Size: 381 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071129/73b5c042/attachment.patch>



More information about the ffmpeg-devel mailing list