pkgsrc/multimedia/libmp4v2/patches/patch-at
christos 707615c61c PR/46089: David Shao: Don't use f{g,s}etpos because there is no portable
way of extracting the offset from them, which is all that is needed in
this case. Just use fseeko/ftello.
2012-02-24 18:36:48 +00:00

15 lines
489 B
Text

$NetBSD: patch-at,v 1.1 2012/02/24 18:36:49 christos Exp $
--- player/plugin/video/xvid/xvid_file.cpp.orig 2005-02-25 19:10:54.000000000 -0500
+++ player/plugin/video/xvid/xvid_file.cpp 2012-02-24 13:07:41.000000000 -0500
@@ -395,9 +395,7 @@
xvid->m_buffer_on = 0;
xvid->m_buffer_size = 0;
- fpos_t pos;
- VAR_TO_FPOS(pos, fpos->file_position);
- fsetpos(xvid->m_ifile, &pos);
+ fseeko(xvid->m_ifile, fpos->file_position, SEEK_SET);
xvid_reset_buffer(xvid);
return 0;