changeset 24084:2b572bde6b3d

Add support for AVSEEK_SIZE in demux_lavf
author reimar
date Mon, 20 Aug 2007 09:27:47 +0000
parents a2e0a85cdf71
children 71d17c28f545
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Mon Aug 20 09:26:29 2007 +0000
+++ b/libmpdemux/demux_lavf.c	Mon Aug 20 09:27:47 2007 +0000
@@ -145,6 +145,8 @@
         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;