From 30f6b2953772765c0050fb3a35dbe20599b43a0b Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 29 Jun 2011 20:46:36 +0000 Subject: [PATCH] build on windows --- panda/src/movies/ffmpegVirtualFile.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/movies/ffmpegVirtualFile.cxx b/panda/src/movies/ffmpegVirtualFile.cxx index 5c7894fc68..c460a7205c 100644 --- a/panda/src/movies/ffmpegVirtualFile.cxx +++ b/panda/src/movies/ffmpegVirtualFile.cxx @@ -306,7 +306,7 @@ pandavfs_seek(URLContext *h, int64_t pos, int whence) { switch(whence) { case SEEK_SET: - in->seekg(self->_start + pos, ios::beg); + in->seekg(self->_start + (streampos)pos, ios::beg); break; case SEEK_CUR: @@ -316,7 +316,7 @@ pandavfs_seek(URLContext *h, int64_t pos, int whence) { case SEEK_END: // For seeks relative to the end, we actually compute the end // based on _start + _size, and then use ios::beg. - in->seekg(self->_start + (streampos)self->_size + pos, ios::beg); + in->seekg(self->_start + (streampos)self->_size + (streampos)pos, ios::beg); break; case AVSEEK_SIZE: