[FFmpeg-devel] [PATCH] Add a new flag AVFMT_NETWORK

Martin Storsjö martin
Mon Oct 11 15:54:26 CEST 2010

On Mon, 11 Oct 2010, Ronald S. Bultje wrote:

> On Mon, Oct 11, 2010 at 9:26 AM, Martin Storsj? <martin at martin.st> wrote:
> > By adding a flag AVFMT_NETWORK, we could move calling
> > ff_network_init()/ff_network_close to common code in utils.c, instead of
> > having to have this in the muxers/demuxers that use network functions
> > before opening protocols.
> That should also go in protocol code then... Do you have any ideas on
> how to do it there?

Well, for protocols, we always call these functions as long as 
CONFIG_NETWORK is enabled, so we can't stop calling them and expect all 
protocols (that could be in code outside of lavf) to set some new flag, so 
I'm not sure how much we'd gain from that.

> (I'm not against this, in fact I think it's nice as a replacement for
> "slow-seek" flag 'ish stuff that I've hacked in a couple of times when
> required.)

Hmm, I'm not sure if one should assume that they mean the same thing. As a 
somewhat crafted example, there could be a (de)muxer that needs to call 
network functions for some reason, but still reads mostly locally.

// Martin

More information about the ffmpeg-devel mailing list