[FFmpeg-devel] [PATCH] Abort Ogg header parsing when we encounter a data packet.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Apr 9 17:15:27 CEST 2011


On Fri, Apr 08, 2011 at 10:18:56AM +0200, Clément Bœsch wrote:
> On Fri, Apr 08, 2011 at 01:20:59AM +0200, Reimar Döffinger wrote:
> > Fixes ticket #15.
> > ---
> >  libavformat/oggdec.c |    8 ++++----
> >  1 files changed, 4 insertions(+), 4 deletions(-)
> > 
> > diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
> > index ddc7a1f..bcec2d5 100644
> > --- a/libavformat/oggdec.c
> > +++ b/libavformat/oggdec.c
> 
> This patch makes at least ffplay freeze with my MPD webradio…

URL? Could you remove the line that sets AVFMTCTX_NOHEADER
and test?
I think the AVFMTCTX_NOHEADER might actually not be necassary
since we tend to find all the streams right at the start (so
we have kind of a header), it's just the stream properties
that take longer but FFmpeg handles that independently of
AVFMTCTX_NOHEADER.


More information about the ffmpeg-devel mailing list