[FFmpeg-devel] [PATCH 3/3] ffmpeg_opt: assert_file_overwrite: Work for all file access

Alexander Strasser eclipse7 at gmx.net
Sun Jan 5 03:40:19 CET 2014


On 2014-01-03 22:02 +0100, Alexander Strasser wrote:
> On 2014-01-03 18:12 +0100, Stefano Sabatini wrote:
[...]
> > 
> > I think avio_check_if_protocol() seems a bit overspecialized
> 
>   Yes, I agree. It looks not *that* useful in general. I am not
> sure the old avio_check is really useful. At least I do not know
> of any use cases, considering it is insufficient for the use case
> in ffmpeg.
> 
>   This is why I had the impression the avio_check_if_protocol would
> provide an actually useful alternative to avio_check . Though ATM
> I would prefer a solution like the one you suggest below.
> 
> > (but I
> > can't easily see a more elegant solution). Probably we could have a
> > function like:
> > 
> > av_guess_url_protocol(url)
> > 
> > which returns the name of the protocol.
> 
>   I had a similar though when I started out, but dropped it for some
> reason. Thanks for the idea, will try if I can come up with something.

  I sent an alternative series which adds avio_find_protocol. 

  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140105/e124f202/attachment.asc>


More information about the ffmpeg-devel mailing list