[MPlayer-cvslog] r34629 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Sat Jan 28 14:13:29 CET 2012
Author: reimar
Date: Sat Jan 28 14:13:29 2012
New Revision: 34629
Log:
Only set "seekable", not "is_streamed" for compatibility with
newer FFmpeg versions.
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Sat Jan 28 14:06:59 2012 (r34628)
+++ trunk/libmpdemux/demux_lavf.c Sat Jan 28 14:13:29 2012 (r34629)
@@ -522,8 +522,8 @@ static demuxer_t* demux_open_lavf(demuxe
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;
}
More information about the MPlayer-cvslog
mailing list