[FFmpeg-devel] [PATCH] Add a new flag AVFMT_NETWORK
Mon Oct 11 18:15:21 CEST 2010
On Tue, 12 Oct 2010, Peter Ross wrote:
> On Mon, Oct 11, 2010 at 04:54:26PM +0300, Martin Storsj? wrote:
> > 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.
> > > (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.
> Can you provide an practical example of this.
Not really - it was purely hypothetical, trying to point out that "using
network functions" and "slow seeks" don't necessarily go hand in hand,
even if they often do.
More information about the ffmpeg-devel