[MPlayer-cvslog] r24104 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Mon Aug 20 11:27:47 CEST 2007
Author: reimar
Date: Mon Aug 20 11:27:47 2007
New Revision: 24104
Log:
Add support for AVSEEK_SIZE in demux_lavf
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c (original)
+++ trunk/libmpdemux/demux_lavf.c Mon Aug 20 11:27:47 2007
@@ -145,6 +145,8 @@ static offset_t mp_seek(URLContext *h, o
pos += stream->end_pos;
else if(whence == SEEK_SET)
pos += stream->start_pos;
+ else if(whence == AVSEEK_SIZE && stream->end_pos > 0)
+ return stream->end_pos - stream->start_pos;
else
return -1;
More information about the MPlayer-cvslog
mailing list