[MPlayer-dev-eng] force lavf demuxer for rtmp?
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Apr 1 17:46:53 CEST 2010
On Thu, Apr 01, 2010 at 02:09:26PM +0200, Michael Niedermayer wrote:
> meOn Mon, Mar 22, 2010 at 08:05:37AM +0100, Reimar Döffinger wrote:
> > On Sun, Mar 21, 2010 at 08:22:00PM -0700, Howard Chu wrote:
> > > @@ -251,8 +254,13 @@ static int rtmp_stream_open(stream_t *stream, int mode, void *opts,
> > > stream->type = STREAMTYPE_STREAM;
> > > stream->priv = rs;
> > >
> > > - *file_format = DEMUXER_TYPE_LAVF_PREFERRED;
> > > - fixup_network_stream_cache(stream);
> > > + *file_format = DEMUXER_TYPE_LAVF;
> >
> > LAVF may read several MB of data before giving up on autodetection, so this
> > change is a rather bad idea unless really necessary.
>
> you can set AVCodecContext.probesize since r22758 to limit the maximum
> amount probed
Thanks, but that is not the issue here.
For now, DEMUXER_TYPE_LAVF is _supposed_ to try as hard as possible,
including reading several MB if necessary.
If that's not desired, DEMUXER_TYPE_LAVF_PREFERRED should be used.
More information about the MPlayer-dev-eng
mailing list