changeset 33914:9ed8b7b1b94a

Ensure filepos is initialized before following code tries to use it.
author reimar
date Thu, 18 Aug 2011 19:20:50 +0000
parents 8f81a826c86e
children 82b5070214cc
files libmpdemux/demux_ty.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c	Thu Aug 18 19:19:58 2011 +0000
+++ b/libmpdemux/demux_ty.c	Thu Aug 18 19:20:50 2011 +0000
@@ -853,6 +853,7 @@
 {
   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;
 }