don't try to find file length if streaming

Originally committed as revision 4283 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Måns Rullgård 20 years ago
parent ba4ffc2b48
commit 69599eeada
  1. 6
      libavformat/ogg2.c

@ -450,9 +450,9 @@ ogg_get_length (AVFormatContext * s)
{ {
ogg_t *ogg = s->priv_data; ogg_t *ogg = s->priv_data;
int idx = -1, i; int idx = -1, i;
//FIXME: get the right ctx flag to know if is seekable or not
// if(ogg->f->flags & URL_FLAG_STREAMED) if(s->pb.is_streamed)
// return 0; return 0;
// already set // already set
if (s->duration != AV_NOPTS_VALUE) if (s->duration != AV_NOPTS_VALUE)

Loading…
Cancel
Save