changeset 34541:bdda068ba0a0

Only set "seekable", not "is_streamed" for compatibility with newer FFmpeg versions.
author reimar
date Sat, 28 Jan 2012 13:13:29 +0000
parents 2b07cfa69882
children 814b6fcad4b3
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sat Jan 28 13:06:59 2012 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Jan 28 13:13:29 2012 +0000
@@ -522,8 +522,8 @@
         priv->pb = avio_alloc_context(priv->buffer, BIO_BUFFER_SIZE, 0,
                                       demuxer, mp_read, NULL, mp_seek);
         priv->pb->read_seek = mp_read_seek;
-        priv->pb->is_streamed = !demuxer->stream->end_pos || (demuxer->stream->flags & MP_STREAM_SEEK) != MP_STREAM_SEEK;
-        priv->pb->seekable = priv->pb->is_streamed ? 0 : AVIO_SEEKABLE_NORMAL;
+        if (!demuxer->stream->end_pos || (demuxer->stream->flags & MP_STREAM_SEEK) != MP_STREAM_SEEK)
+            priv->pb->seekable = 0;
         avfc->pb = priv->pb;
     }