Mercurial > libavformat.hg
diff ogg2.c @ 766:ed249b9caa2f libavformat
don't try to find file length if streaming
| author | mru |
|---|---|
| date | Thu, 19 May 2005 21:03:03 +0000 |
| parents | cdb845a57ae4 |
| children | feca73904e67 |
line wrap: on
line diff
--- a/ogg2.c Thu May 19 00:17:50 2005 +0000 +++ b/ogg2.c Thu May 19 21:03:03 2005 +0000 @@ -450,9 +450,9 @@ { ogg_t *ogg = s->priv_data; int idx = -1, i; -//FIXME: get the right ctx flag to know if is seekable or not -// if(ogg->f->flags & URL_FLAG_STREAMED) -// return 0; + + if(s->pb.is_streamed) + return 0; // already set if (s->duration != AV_NOPTS_VALUE)
