[MPlayer-cvslog] r34002 - trunk/libmpdemux/demux_ty.c

reimar subversion at mplayerhq.hu
Thu Aug 18 21:20:50 CEST 2011


Author: reimar
Date: Thu Aug 18 21:20:50 2011
New Revision: 34002

Log:
Ensure filepos is initialized before following code tries to use it.

Modified:
   trunk/libmpdemux/demux_ty.c

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	Thu Aug 18 21:19:58 2011	(r34001)
+++ trunk/libmpdemux/demux_ty.c	Thu Aug 18 21:20:50 2011	(r34002)
@@ -853,6 +853,7 @@ static int ty_check_file(demuxer_t* demu
 {
   TiVoInfo *tivo = calloc(1, sizeof(TiVoInfo));
   demuxer->priv = tivo;
+  demuxer->filepos = stream_tell( demuxer->stream );
   return ds_fill_buffer(demuxer->video) ? DEMUXER_TYPE_MPEG_TY : 0;
 }
 


More information about the MPlayer-cvslog mailing list