[MPlayer-cvslog] r37281 - trunk/libmpdemux/demux_lavf.c

reimar subversion at mplayerhq.hu
Wed Sep 17 19:49:54 CEST 2014


Author: reimar
Date: Wed Sep 17 19:49:54 2014
New Revision: 37281

Log:
lavf: fix AVSEEK_SIZE when STREAM_CTRL_GET_SIZE is not implemented.

Would set the size to an uninitialized value before.

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Wed Sep 17 19:13:35 2014	(r37280)
+++ trunk/libmpdemux/demux_lavf.c	Wed Sep 17 19:49:54 2014	(r37281)
@@ -105,7 +105,7 @@ static int64_t mp_seek(void *opaque, int
     else if(whence == SEEK_SET)
         pos += stream->start_pos;
     else if(whence == AVSEEK_SIZE && stream->end_pos > 0) {
-        uint64_t size;
+        uint64_t size = 0;
         stream_control(stream, STREAM_CTRL_GET_SIZE, &size);
         if (size > stream->end_pos)
             stream->end_pos = size;


More information about the MPlayer-cvslog mailing list