summaryrefslogtreecommitdiff
path: root/libavformat/ogg2.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2005-05-19 21:03:03 +0000
committerMåns Rullgård <mans@mansr.com>2005-05-19 21:03:03 +0000
commit69599eeadad37b3e8d130a424a4aa9be12ea6d3f (patch)
tree18299d3b9c798db5740a61e5650613d4f527afbd /libavformat/ogg2.c
parentba4ffc2b48832c7ca95ac6e48f8c4f23aa4ad3a6 (diff)
don't try to find file length if streaming
Originally committed as revision 4283 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ogg2.c')
-rw-r--r--libavformat/ogg2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/ogg2.c b/libavformat/ogg2.c
index 6f9638b005..aee6d58909 100644
--- a/libavformat/ogg2.c
+++ b/libavformat/ogg2.c
@@ -450,9 +450,9 @@ ogg_get_length (AVFormatContext * s)
{
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)